Core/Spells: increase the initial Z coordinate for Flaming and Frostfire Orb in order to prevent some minor terrain hickups blocking the movement

This commit is contained in:
Ovahlord
2018-11-07 01:43:41 +01:00
parent 223aa43cea
commit 938adaacdd

View File

@@ -3047,6 +3047,7 @@ class npc_mage_orb : public CreatureScript
void IsSummonedBy(Unit* summoner) override
{
pos = summoner->GetPosition();
pos.m_positionZ += 2.0f; // increasing the height to avoid terrain hickups
summoner->MovePositionToFirstCollision(pos, 100.0f, 0.0f);
events.ScheduleEvent(EVENT_MOVE_FORWARD, Milliseconds(1));
events.ScheduleEvent(EVENT_APPLY_PERIODIC_EFFECT, Milliseconds(400));