Core/Auras: Update aura type to its new meaning

Port From (https://github.com/TrinityCore/TrinityCore/commit/5d73b7ac9e4167b32fbe73341211e4a7dcd084c4)
This commit is contained in:
hondacrx
2019-12-02 14:18:12 -05:00
parent dcdc3949ad
commit 013933d7f5
3 changed files with 2 additions and 24 deletions
-13
View File
@@ -3907,19 +3907,6 @@ namespace Game.Spells
target.HandleStatModifier(UnitMods.AttackPowerRanged, UnitModifierType.TotalPCT, GetAmount(), apply);
}
[AuraEffectHandler(AuraType.ModAttackPowerOfArmor)]
void HandleAuraModAttackPowerOfArmor(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
{
if (!mode.HasAnyFlag((AuraEffectHandleModes.ChangeAmountMask | AuraEffectHandleModes.Stat)))
return;
Unit target = aurApp.GetTarget();
// Recalculate bonus
if (target.IsTypeId(TypeId.Player))
target.ToPlayer().UpdateAttackPowerAndDamage(false);
}
/********************************/
/*** DAMAGE BONUS ***/
/********************************/