Core/Auras: Implement spell effect attribute NoScaleWithStack (0x40)
Port From (https://github.com/TrinityCore/TrinityCore/commit/b832ed2479c039958bce40c3c26294fc67acf744)
This commit is contained in:
@@ -122,7 +122,8 @@ namespace Game.Spells
|
||||
}
|
||||
|
||||
GetBase().CallScriptEffectCalcAmountHandlers(this, ref amount, ref m_canBeRecalculated);
|
||||
amount *= GetBase().GetStackAmount();
|
||||
if (!GetSpellEffectInfo().EffectAttributes.HasFlag(SpellEffectAttributes.NoScaleWithStack))
|
||||
amount *= GetBase().GetStackAmount();
|
||||
return amount;
|
||||
}
|
||||
public void CalculatePeriodic(Unit caster, bool resetPeriodicTimer = true, bool load = false)
|
||||
|
||||
@@ -3666,6 +3666,7 @@ namespace Game.Spells
|
||||
Scaling.Coefficient = effect.Coefficient;
|
||||
Scaling.Variance = effect.Variance;
|
||||
Scaling.ResourceCoefficient = effect.ResourceCoefficient;
|
||||
EffectAttributes = effect.EffectAttributes;
|
||||
|
||||
ImplicitTargetConditions = null;
|
||||
|
||||
@@ -4408,6 +4409,7 @@ namespace Game.Spells
|
||||
public FlagArray128 SpellClassMask;
|
||||
public float BonusCoefficientFromAP;
|
||||
public List<Condition> ImplicitTargetConditions;
|
||||
public SpellEffectAttributes EffectAttributes;
|
||||
public ScalingInfo Scaling;
|
||||
|
||||
ImmunityInfo _immunityInfo;
|
||||
|
||||
Reference in New Issue
Block a user