From 4286879e0825a32d334a2567a85f701624f295a8 Mon Sep 17 00:00:00 2001 From: Emagi Date: Wed, 27 Aug 2025 22:04:34 -0400 Subject: [PATCH] heroic op spells are recognized as such with ProcessSpell (in_heroic_op) --- source/WorldServer/SpellProcess.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/WorldServer/SpellProcess.cpp b/source/WorldServer/SpellProcess.cpp index 59b15c1..826b023 100644 --- a/source/WorldServer/SpellProcess.cpp +++ b/source/WorldServer/SpellProcess.cpp @@ -220,11 +220,9 @@ void SpellProcess::Process(){ CastProcessedSpell(cast_timer->spell, false, cast_timer->in_heroic_opp); } else if (cast_timer->entity_command) { - if (cast_timer->timer->Check(false)) { - cast_timer->delete_timer = true; - Spawn* target = cast_timer->zone->GetSpawnByID(cast_timer->target_id); - CastProcessedEntityCommand(cast_timer->entity_command, cast_timer->caster, target, cast_timer->in_heroic_opp); - } + cast_timer->delete_timer = true; + Spawn* target = cast_timer->zone->GetSpawnByID(cast_timer->target_id); + CastProcessedEntityCommand(cast_timer->entity_command, cast_timer->caster, target, cast_timer->in_heroic_opp); } } if (cast_timer->delete_timer) { @@ -2019,7 +2017,7 @@ bool SpellProcess::CastProcessedSpell(LuaSpell* spell, bool passive, bool in_her MSoloHO.releasewritelock(__FUNCTION__, __LINE__); if (ho_spell && ho_target != 0) - client->GetCurrentZone()->ProcessSpell(ho_spell, client->GetPlayer(), spell->caster->GetZone()->GetSpawnByID(ho_target)); + client->GetCurrentZone()->ProcessSpell(ho_spell, client->GetPlayer(), spell->caster->GetZone()->GetSpawnByID(ho_target), true, false, nullptr, 0, true); }