.cheat god should also affect on falling damage.

This commit is contained in:
Дмитрий
2014-04-08 14:40:16 +03:00
parent 8927a04253
commit 5be05913e6
@@ -25058,6 +25058,9 @@ void Player::HandleFall(MovementInfo const& movementInfo)
if (damageperc > 0)
{
uint32 damage = (uint32)(damageperc * GetMaxHealth()*sWorld->getRate(RATE_DAMAGE_FALL));
if (GetCommandStatus(CHEAT_GOD))
damage = 0;
float height = movementInfo.pos.m_positionZ;
UpdateGroundPositionZ(movementInfo.pos.m_positionX, movementInfo.pos.m_positionY, height);