Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success
Port From (https://github.com/TrinityCore/TrinityCore/commit/a8bb1739e99c503fc72b3a4a9ecede214c88396f)
This commit is contained in:
@@ -938,7 +938,7 @@ namespace Game.Scripting
|
||||
public void FinishCast(SpellCastResult result, int? param1 = null, int? param2 = null)
|
||||
{
|
||||
m_spell.SendCastResult(result, param1, param2);
|
||||
m_spell.Finish(result == SpellCastResult.SpellCastOk);
|
||||
m_spell.Finish(result);
|
||||
}
|
||||
|
||||
public void SetCustomCastResultMessage(SpellCustomErrors result)
|
||||
|
||||
Reference in New Issue
Block a user