Core/Auras: Update aura type to its new meaning
Port From (https://github.com/TrinityCore/TrinityCore/commit/5d73b7ac9e4167b32fbe73341211e4a7dcd084c4)
This commit is contained in:
@@ -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 ***/
|
||||
/********************************/
|
||||
|
||||
Reference in New Issue
Block a user