Skip to content

Commit f0cece2

Browse files
authored
fix: item's quick cast (#2178)
Restored quick casting functionality for spell items, resolving my mess from PR #2174. Also ensured last projectile removal for quick casted spells is working as expected.
1 parent 21b1d7f commit f0cece2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Intersect.Server.Core/Entities/Player.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5483,7 +5483,7 @@ public void UseSpell(int spellSlot, Entity target)
54835483
public override void CastSpell(Guid spellId, int spellSlot = -1)
54845484
{
54855485
var spellBase = SpellBase.Get(spellId);
5486-
if (spellBase == null || spellSlot < 0 || spellSlot >= Options.MaxPlayerSkills)
5486+
if (spellBase == null)
54875487
{
54885488
return;
54895489
}

0 commit comments

Comments
 (0)