Skip to content

Commit

Permalink
Merge pull request #401 from AscensionGameDev/fix-395
Browse files Browse the repository at this point in the history
Don't send cooldown to npcs! (Fixes 395)
  • Loading branch information
jcsnider committed Oct 17, 2020
2 parents 9274be8 + 1c9c540 commit a9bfef6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Intersect.Server/Entities/Entity.cs
Expand Up @@ -2075,15 +2075,10 @@ public virtual void CastSpell(Guid spellId, int spellSlot = -1)

break;
case SpellTypes.WarpTo:
if (CastTarget == null)
if (CastTarget != null)
{
PacketSender.SendSpellCooldown((Player) this, Spells[spellSlot].SpellId);

return;
HandleAoESpell(spellId, spellBase.Combat.CastRange, MapId, X, Y, CastTarget);
}

HandleAoESpell(spellId, spellBase.Combat.CastRange, MapId, X, Y, CastTarget);

break;
case SpellTypes.Dash:
PacketSender.SendActionMsg(this, Strings.Combat.dash, CustomColors.Combat.Dash);
Expand Down

0 comments on commit a9bfef6

Please sign in to comment.