Misc Stuff
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user