From 605e5f94c0d71cad8e83fa5a07eaec4e6bed9cc3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 8 Jan 2024 22:23:12 +0100 Subject: Core/Creatures: Moved autoattack handling from scripts to game --- .../Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/server/scripts/Argus') diff --git a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp index 94df54aeaf5..9e574dbdeeb 100644 --- a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp +++ b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp @@ -434,9 +434,7 @@ struct boss_garothi_worldbreaker : public BossAI return; } - if (me->GetVictim() && me->GetVictim()->IsWithinMeleeRange(me)) - DoMeleeAttackIfReady(); - else + if (!me->GetVictim() || !me->GetVictim()->IsWithinMeleeRange(me)) DoSpellAttackIfReady(SPELL_CARNAGE); } private: -- cgit v1.2.3