Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success
Port From (https://github.com/TrinityCore/TrinityCore/commit/a8bb1739e99c503fc72b3a4a9ecede214c88396f)
This commit is contained in:
@@ -1687,7 +1687,7 @@ namespace Game.Spells
|
||||
|
||||
// prevent interrupt message
|
||||
if (GetCasterGUID() == target.GetGUID() && target.GetCurrentSpell(CurrentSpellTypes.Generic) != null)
|
||||
target.FinishSpell(CurrentSpellTypes.Generic, false);
|
||||
target.FinishSpell(CurrentSpellTypes.Generic, SpellCastResult.Interrupted);
|
||||
target.InterruptNonMeleeSpells(true);
|
||||
|
||||
// stop handling the effect if it was removed by linked event
|
||||
|
||||
Reference in New Issue
Block a user