Core/SpellScript: allow optional parameters to be passed to FinishCast

followup of 50a3ce5703
This commit is contained in:
ariel-
2016-11-13 22:15:03 -03:00
parent cbb5c073ce
commit aa21137aeb
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -441,7 +441,7 @@ class TC_GAME_API SpellScript : public _SpellScript
SpellInfo const* GetTriggeringSpell();
// finishes spellcast prematurely with selected error message
void FinishCast(SpellCastResult result);
void FinishCast(SpellCastResult result, uint32* param1 = nullptr, uint32* param2 = nullptr);
void SetCustomCastResultMessage(SpellCustomErrors result);
};