Core/SpellScript: allow optional parameters to be passed to FinishCast
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user