.cheat god should also affect on falling damage.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user