From 5677d9010751c5abd824ee9efe5d87f6241cfa07 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 26 Dec 2017 15:13:56 -0500 Subject: [PATCH] Core/SpellScript: allow optional parameters to be passed to FinishCast --- Source/Game/Scripting/SpellScript.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Scripting/SpellScript.cs b/Source/Game/Scripting/SpellScript.cs index eacf699e9..4a96cfdd1 100644 --- a/Source/Game/Scripting/SpellScript.cs +++ b/Source/Game/Scripting/SpellScript.cs @@ -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); }