mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Scripts/ManaTombs): Yor stomp added (#15986)
This commit is contained in:
@@ -170,8 +170,11 @@ public:
|
||||
|
||||
enum Yor
|
||||
{
|
||||
SPELL_DOUBLE_BREATH = 38361,
|
||||
EVENT_DOUBLE_BREATH = 1
|
||||
SPELL_DOUBLE_BREATH = 38361,
|
||||
SPELL_STOMP = 36405,
|
||||
|
||||
EVENT_DOUBLE_BREATH = 1,
|
||||
EVENT_STOMP = 2
|
||||
};
|
||||
|
||||
class npc_yor : public CreatureScript
|
||||
@@ -192,7 +195,8 @@ public:
|
||||
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
events.ScheduleEvent(EVENT_DOUBLE_BREATH, urand(6000, 9000));
|
||||
events.ScheduleEvent(EVENT_DOUBLE_BREATH, urand(26500, 30500));
|
||||
events.ScheduleEvent(EVENT_STOMP, urand(12000, 18000));
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
@@ -201,6 +205,10 @@ public:
|
||||
return;
|
||||
|
||||
events.Update(diff);
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
@@ -209,16 +217,16 @@ public:
|
||||
case EVENT_DOUBLE_BREATH:
|
||||
if (me->IsWithinDist(me->GetVictim(), ATTACK_DISTANCE))
|
||||
DoCastVictim(SPELL_DOUBLE_BREATH);
|
||||
events.ScheduleEvent(EVENT_DOUBLE_BREATH, urand(6000, 9000));
|
||||
events.ScheduleEvent(EVENT_DOUBLE_BREATH, urand(10000, 20000));
|
||||
break;
|
||||
default:
|
||||
case EVENT_STOMP:
|
||||
DoCastAOE(SPELL_STOMP);
|
||||
events.ScheduleEvent(EVENT_STOMP, urand(14000, 24000));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
private:
|
||||
EventMap events;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user