mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Core/Creatures: Moved autoattack handling from scripts to game
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user