diff options
author | ariel- <ariel-@users.noreply.github.com> | 2016-11-13 22:15:03 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2016-11-14 02:05:54 -0300 |
commit | aa21137aeb5cc9034dad47ea3fc0e46232d80db0 (patch) | |
tree | c44f180cc4a1ddeffd14fd5ac7205d10bde32e0a /src/server/game/Spells/SpellScript.cpp | |
parent | cbb5c073ceb951fa138bb05b55de8b21ffd83063 (diff) |
Core/SpellScript: allow optional parameters to be passed to FinishCast
followup of 50a3ce5703bdaa4fe16e2e773eabafa9a4818083
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rw-r--r-- | src/server/game/Spells/SpellScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp index 7e9932511cd..950456394d8 100644 --- a/src/server/game/Spells/SpellScript.cpp +++ b/src/server/game/Spells/SpellScript.cpp @@ -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); } |