mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/SpellScript: allow optional parameters to be passed to FinishCast
followup of50a3ce5703(cherry picked from commitaa21137aeb)
This commit is contained in:
@@ -668,9 +668,9 @@ SpellInfo const* SpellScript::GetTriggeringSpell() const
|
||||
return m_spell->m_triggeredByAuraSpell;
|
||||
}
|
||||
|
||||
void SpellScript::FinishCast(SpellCastResult result)
|
||||
void SpellScript::FinishCast(SpellCastResult result, uint32* param1 /*= nullptr*/, uint32* param2 /*= nullptr*/)
|
||||
{
|
||||
m_spell->SendCastResult(result);
|
||||
m_spell->SendCastResult(result, param1, param2);
|
||||
m_spell->finish(result == SPELL_CAST_OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user