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

This commit is contained in:
hondacrx
2017-12-26 15:13:56 -05:00
parent c0d49b879e
commit 5677d90107
+2 -2
View File
@@ -742,9 +742,9 @@ namespace Game.Scripting
public SpellInfo GetTriggeringSpell() { return m_spell.m_triggeredByAuraSpell; }
// finishes spellcast prematurely with selected error message
public void FinishCast(SpellCastResult result)
public void FinishCast(SpellCastResult result, uint? param1 = null, uint? param2 = null)
{
m_spell.SendCastResult(result);
m_spell.SendCastResult(result, param1, param2);
m_spell.finish(result == SpellCastResult.SpellCastOk);
}