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)
{
var effects = GetAuraEffectsByType(AuraType.TriggerSpellOnPowerPct);
var effectsAmount = GetAuraEffectsByType(AuraType.TriggerSpellOnPowerAmount);
effects.AddRange(effectsAmount);
void processAuras(List<AuraEffect> effects)
{
foreach (AuraEffect effect in effects)
{
if (effect.GetMiscValue() == (int)power)
@@ -764,6 +762,10 @@ namespace Game.Entities
}
}
processAuras(GetAuraEffectsByType(AuraType.TriggerSpellOnPowerPct));
processAuras(GetAuraEffectsByType(AuraType.TriggerSpellOnPowerAmount));
}
public bool CanApplyResilience()
{
return !IsVehicle() && GetOwnerGUID().IsPlayer();