Merge pull request #11858 from Dimitro/master

.cheat god command should also affect on falling damage.
This commit is contained in:
Discover- committed 2014-04-08 16:52:56 +02:00
commit 8d97a0e906
1 file changed
+3
@@ -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);