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:
@@ -374,7 +374,7 @@ namespace Game
|
||||
if (!pet.GetSpellHistory().HasCooldown(spellid))
|
||||
pet.GetSpellHistory().ResetCooldown(spellid, true);
|
||||
|
||||
spell.Finish(false);
|
||||
spell.Finish(result);
|
||||
spell.Dispose();
|
||||
|
||||
// reset specific flags in case of spell fail. AI will reset other flags
|
||||
@@ -730,7 +730,7 @@ namespace Game
|
||||
if (!caster.GetSpellHistory().HasCooldown(spellInfo.Id))
|
||||
caster.GetSpellHistory().ResetCooldown(spellInfo.Id, true);
|
||||
|
||||
spell.Finish(false);
|
||||
spell.Finish(result);
|
||||
spell.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user