Core/Auras: Implemented SPELL_AURA_MODIFY_FALL_DAMAGE_PCT
Port From (https://github.com/TrinityCore/TrinityCore/commit/7c53be0210470d45efce672b5f3dbb3bc5bd857a)
This commit is contained in:
@@ -2031,6 +2031,8 @@ namespace Game.Entities
|
|||||||
float height = movementInfo.Pos.posZ;
|
float height = movementInfo.Pos.posZ;
|
||||||
UpdateGroundPositionZ(movementInfo.Pos.posX, movementInfo.Pos.posY, ref height);
|
UpdateGroundPositionZ(movementInfo.Pos.posX, movementInfo.Pos.posY, ref height);
|
||||||
|
|
||||||
|
damage = (uint)(damage * GetTotalAuraMultiplier(AuraType.ModifyFallDamagePct));
|
||||||
|
|
||||||
if (damage > 0)
|
if (damage > 0)
|
||||||
{
|
{
|
||||||
//Prevent fall damage from being more than the player maximum health
|
//Prevent fall damage from being more than the player maximum health
|
||||||
|
|||||||
Reference in New Issue
Block a user