mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/DTK): Fix Trollgore evade boundary (#23796)
This commit is contained in:
@@ -130,6 +130,12 @@ public:
|
|||||||
if (!UpdateVictim())
|
if (!UpdateVictim())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!CheckInRoom())
|
||||||
|
{
|
||||||
|
EnterEvadeMode(EVADE_REASON_BOUNDARY);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
events.Update(diff);
|
events.Update(diff);
|
||||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||||
return;
|
return;
|
||||||
@@ -159,9 +165,9 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CheckEvadeIfOutOfCombatArea() const override
|
bool CheckInRoom() override
|
||||||
{
|
{
|
||||||
return me->GetHomePosition().GetExactDist2d(me) > 60.0f;
|
return (me->GetPositionY() >= -700.0f && me->GetPositionY() <= -628.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user