Misc Stuff

This commit is contained in:
hondacrx
2023-07-01 09:34:03 -04:00
parent c81213e591
commit f7169353b3
+6 -4
View File
@@ -724,10 +724,8 @@ namespace Game.Entities
void TriggerOnPowerChangeAuras(PowerType power, int oldVal, int newVal) void TriggerOnPowerChangeAuras(PowerType power, int oldVal, int newVal)
{ {
var effects = GetAuraEffectsByType(AuraType.TriggerSpellOnPowerPct); void processAuras(List<AuraEffect> effects)
var effectsAmount = GetAuraEffectsByType(AuraType.TriggerSpellOnPowerAmount); {
effects.AddRange(effectsAmount);
foreach (AuraEffect effect in effects) foreach (AuraEffect effect in effects)
{ {
if (effect.GetMiscValue() == (int)power) if (effect.GetMiscValue() == (int)power)
@@ -764,6 +762,10 @@ namespace Game.Entities
} }
} }
processAuras(GetAuraEffectsByType(AuraType.TriggerSpellOnPowerPct));
processAuras(GetAuraEffectsByType(AuraType.TriggerSpellOnPowerAmount));
}
public bool CanApplyResilience() public bool CanApplyResilience()
{ {
return !IsVehicle() && GetOwnerGUID().IsPlayer(); return !IsVehicle() && GetOwnerGUID().IsPlayer();