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