mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Scripts: Remove Optional<> wrapper from all Scripting::v2::ActionResultSetter uses
This commit is contained in:
@@ -3892,7 +3892,7 @@ void Spell::_cast(bool skipCheck)
|
||||
}
|
||||
|
||||
if (m_scriptResult && !m_scriptWaitsForSpellHit)
|
||||
m_scriptResult->SetResult(SPELL_CAST_OK);
|
||||
m_scriptResult.SetResult(SPELL_CAST_OK);
|
||||
|
||||
CallScriptAfterCastHandlers();
|
||||
|
||||
@@ -4381,7 +4381,7 @@ void Spell::finish(SpellCastResult result)
|
||||
m_spellState = SPELL_STATE_FINISHED;
|
||||
|
||||
if (m_scriptResult && (m_scriptWaitsForSpellHit || result != SPELL_CAST_OK))
|
||||
m_scriptResult->SetResult(result);
|
||||
m_scriptResult.SetResult(result);
|
||||
|
||||
if (!m_caster)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user