Scripts/BoT: initial work on Theralion and Valiona

Todo:
*Valiona's Deep Breath mechanic and phase switch
*Twilight Realm hostiles
*Heroic abilities
This commit is contained in:
Ovahlord committed 2018-05-12 23:13:04 +02:00
1 parent 33977a65b7
commit a659a8fa2d
8 files changed
+1494 -50

No files matched your search

@@ -1671,10 +1671,6 @@ void WorldObject::UpdateAllowedPositionZ(float x, float y, float &z) const
if (z < ground_z)
z = ground_z;
}
// Creatures that are simulating flight effects or actual flight should use HoverHeight
if ((ToUnit() && (ToUnit()->IsFlying() || ToUnit()->IsHovering() || ToUnit()->IsLevitating())) && !ToUnit()->IsUnderWater())
z += GetFloatValue(UNIT_FIELD_HOVERHEIGHT);
break;
}
case TYPEID_PLAYER: