Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success

This commit is contained in:
Shauren
2023-02-28 00:19:31 +01:00
parent 982b60f39c
commit a8bb1739e9
8 changed files with 34 additions and 34 deletions

View File

@@ -895,7 +895,7 @@ SpellInfo const* SpellScript::GetTriggeringSpell() const
void SpellScript::FinishCast(SpellCastResult result, int32* param1 /*= nullptr*/, int32* param2 /*= nullptr*/)
{
m_spell->SendCastResult(result, param1, param2);
m_spell->finish(result == SPELL_CAST_OK);
m_spell->finish(result);
}
void SpellScript::SetCustomCastResultMessage(SpellCustomErrors result)