mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
feat(Core/Position): own file (#10505)
This commit is contained in:
committed by
GitHub
parent
b0b9fece99
commit
93520f6466
@@ -2470,9 +2470,9 @@ public:
|
||||
break;
|
||||
case EVENT_EMERGENCY_BOT_CHECK:
|
||||
events.RepeatEvent(15000); // just in case, will be rescheduled
|
||||
if( Creature* flame = me->FindNearestCreature(NPC_FLAMES_SPREAD, 150.0f, true) )
|
||||
if (Creature* flame = me->FindNearestCreature(NPC_FLAMES_SPREAD, 150.0f, true))
|
||||
{
|
||||
me->m_orientation = me->GetAngle(flame->GetPositionX(), flame->GetPositionY());
|
||||
me->SetOrientation(me->GetAngle(flame->GetPositionX(), flame->GetPositionY()));
|
||||
float dist = me->GetExactDist2d(flame);
|
||||
if (dist <= 5.0f)
|
||||
events.ScheduleEvent(EVENT_EMERGENCY_BOT_ATTACK, 0);
|
||||
|
||||
Reference in New Issue
Block a user