mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core: Fix non pch build (gcc)
This commit is contained in:
@@ -252,13 +252,14 @@ class npc_minigob_manabonk : public CreatureScript
|
||||
events.ScheduleEvent(EVENT_BLINK, 3*IN_MILLISECONDS);
|
||||
break;
|
||||
case EVENT_BLINK:
|
||||
{
|
||||
DoCast(me, SPELL_IMPROVED_BLINK);
|
||||
Position pos;
|
||||
me->GetRandomNearPosition(pos, (urand(15, 40)));
|
||||
Position pos = me->GetRandomNearPosition(frand(15, 40));
|
||||
me->GetMotionMaster()->MovePoint(0, pos.m_positionX, pos.m_positionY, pos.m_positionZ);
|
||||
events.ScheduleEvent(EVENT_DESPAWN, 3*IN_MILLISECONDS);
|
||||
events.ScheduleEvent(EVENT_DESPAWN, 3 * IN_MILLISECONDS);
|
||||
events.ScheduleEvent(EVENT_DESPAWN_VISUAL, 2.5*IN_MILLISECONDS);
|
||||
break;
|
||||
}
|
||||
case EVENT_DESPAWN_VISUAL:
|
||||
DoCast(me, SPELL_TELEPORT_VISUAL);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user