Some Cleanups
This commit is contained in:
@@ -1313,7 +1313,7 @@ namespace Game.Spells
|
||||
if (aurEff != null)
|
||||
{
|
||||
float multiplier = aurEff.GetAmount();
|
||||
CastSpellExtraArgs args = new CastSpellExtraArgs(TriggerCastFlags.FullMask);
|
||||
CastSpellExtraArgs args = new(TriggerCastFlags.FullMask);
|
||||
args.SpellValueOverrides.Add(SpellValueMod.BasePoint0, MathFunctions.CalculatePct(caster.GetMaxPower(PowerType.Mana), multiplier));
|
||||
caster.CastSpell(caster, 47755, args);
|
||||
}
|
||||
@@ -2487,7 +2487,7 @@ namespace Game.Spells
|
||||
if (casterGUID != owner.GetGUID() && spellproto.IsSingleTarget())
|
||||
return null;
|
||||
|
||||
Aura aura = null;
|
||||
Aura aura;
|
||||
switch (owner.GetTypeId())
|
||||
{
|
||||
case TypeId.Unit:
|
||||
|
||||
@@ -5625,7 +5625,7 @@ namespace Game.Spells
|
||||
// on apply cast summon spell
|
||||
if (apply)
|
||||
{
|
||||
CastSpellExtraArgs args = new CastSpellExtraArgs(TriggerCastFlags.FullMask);
|
||||
CastSpellExtraArgs args = new(TriggerCastFlags.FullMask);
|
||||
args.TriggeringAura = this;
|
||||
args.CastDifficulty = triggerSpellInfo.Difficulty;
|
||||
target.CastSpell(target, triggerSpellInfo.Id, args);
|
||||
|
||||
Reference in New Issue
Block a user