Core/Auras: Implemented SPELL_AURA_MODIFY_FALL_DAMAGE_PCT

Port From (https://github.com/TrinityCore/TrinityCore/commit/7c53be0210470d45efce672b5f3dbb3bc5bd857a)
This commit is contained in:
hondacrx
2021-11-23 20:44:25 -05:00
parent 0a8541a39c
commit e42059ac2b
+2
View File
@@ -2031,6 +2031,8 @@ namespace Game.Entities
float height = movementInfo.Pos.posZ;
UpdateGroundPositionZ(movementInfo.Pos.posX, movementInfo.Pos.posY, ref height);
damage = (uint)(damage * GetTotalAuraMultiplier(AuraType.ModifyFallDamagePct));
if (damage > 0)
{
//Prevent fall damage from being more than the player maximum health