From 32e5da742f74bdc02c3e11bda19459ef600efa8e Mon Sep 17 00:00:00 2001 From: Ovalord <1Don7H4v3@m41L.com> Date: Sat, 13 Jan 2018 02:50:32 +0100 Subject: [PATCH] Scripts/Gilneas: fixed the issue that worgen runts sometimes do not attack the player when entering the prison top --- src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp b/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp index 9cbd5f52846..31fdbc9ef7d 100644 --- a/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp @@ -310,11 +310,11 @@ class npc_worgen_runt : public CreatureScript case EVENT_JUMP_TO_PRISON: me->GetMotionMaster()->MoveJump(worgenRuntJumpPos[_worgenID], 16.0f, _worgenID < WORGEN_ID_CATHEDRAL_1 ? 19.2911f : frand(3.945607f, 4.852813f)); me->SetHomePosition(worgenRuntJumpPos[_worgenID]); - _events.ScheduleEvent(EVENT_AGGRO_PLAYER, Seconds(1)); + _events.ScheduleEvent(EVENT_AGGRO_PLAYER, Seconds(2)); break; case EVENT_AGGRO_PLAYER: if (Unit* player = ObjectAccessor::GetPlayer(*me, _playerGuid)) - if (me->IsAIEnabled && me->IsInDist(&player->GetPosition(), 50.0f)) + if (me->IsAIEnabled && me->IsInDist(&player->GetPosition(), 100.0f)) me->AI()->AttackStart(player); break; default: