mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user