Renamed ModShieldBlockvalue -> AllowTalentSwapping
This commit is contained in:
@@ -179,7 +179,7 @@ namespace Framework.Constants
|
|||||||
ModWaterBreathing = 155, // Mod Water Breathing
|
ModWaterBreathing = 155, // Mod Water Breathing
|
||||||
ModReputationGain = 156, // Mod Reputation Gain
|
ModReputationGain = 156, // Mod Reputation Gain
|
||||||
PetDamageMulti = 157, // Mod Pet Damage
|
PetDamageMulti = 157, // Mod Pet Damage
|
||||||
ModShieldBlockvalue = 158,
|
AllowTalentSwapping = 158,
|
||||||
NoPvpCredit = 159,
|
NoPvpCredit = 159,
|
||||||
Unk160 = 160, // Old ModAoeAvoidance. Unused 4.3.4
|
Unk160 = 160, // Old ModAoeAvoidance. Unused 4.3.4
|
||||||
ModHealthRegenInCombat = 161,
|
ModHealthRegenInCombat = 161,
|
||||||
|
|||||||
@@ -4165,20 +4165,15 @@ namespace Game.Spells
|
|||||||
target.HandleStatModifier(UnitMods.DamageOffHand, UnitModifierType.TotalPCT, GetAmount(), apply);
|
target.HandleStatModifier(UnitMods.DamageOffHand, UnitModifierType.TotalPCT, GetAmount(), apply);
|
||||||
}
|
}
|
||||||
|
|
||||||
[AuraEffectHandler(AuraType.ModShieldBlockvalue)]
|
[AuraEffectHandler(AuraType.ModShieldBlockvaluePct)]
|
||||||
void HandleShieldBlockValue(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
|
void HandleShieldBlockValue(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
|
||||||
{
|
{
|
||||||
if (!mode.HasAnyFlag((AuraEffectHandleModes.ChangeAmountMask | AuraEffectHandleModes.Stat)))
|
if (!mode.HasAnyFlag((AuraEffectHandleModes.ChangeAmountMask | AuraEffectHandleModes.Stat)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Unit target = aurApp.GetTarget();
|
Player player = aurApp.GetTarget().ToPlayer();
|
||||||
|
if (player)
|
||||||
BaseModType modType = BaseModType.FlatMod;
|
player.HandleBaseModValue(BaseModGroup.ShieldBlockValue, BaseModType.PCTmod, GetAmount(), apply);
|
||||||
if (GetAuraType() == AuraType.ModShieldBlockvaluePct)
|
|
||||||
modType = BaseModType.PCTmod;
|
|
||||||
|
|
||||||
if (target.IsTypeId(TypeId.Player))
|
|
||||||
target.ToPlayer().HandleBaseModValue(BaseModGroup.ShieldBlockValue, modType, GetAmount(), apply);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************/
|
/********************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user