Some Cleanups

This commit is contained in:
hondacrx
2021-06-07 18:06:16 -04:00
parent cb7640e3c6
commit 302a1f293c
53 changed files with 382 additions and 477 deletions
+2 -2
View File
@@ -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:
+1 -1
View File
@@ -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);