Core/Scripts: Remove Optional<> wrapper from all Scripting::v2::ActionResultSetter uses

This commit is contained in:
Shauren
2026-01-09 00:37:42 +01:00
parent 05406d034e
commit 00542ca800
29 changed files with 106 additions and 90 deletions

View File

@@ -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;