Core/SpellScript: allow optional parameters to be passed to FinishCast
followup of 50a3ce5703bdaa4fe16e2e773eabafa9a4818083
This commit is contained in:
1 parent
0037363f3a
commit
760bef2453
2 files changed
+3
-3
No files matched your search
@@ -624,9 +624,9 @@ SpellInfo const* SpellScript::GetTriggeringSpell()
|
||||
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