Cleanup some warnings.

This commit is contained in:
hondacrx
2021-11-15 16:11:20 -05:00
parent e0f344af25
commit 032f9a55f3
70 changed files with 233 additions and 234 deletions
+3 -3
View File
@@ -256,7 +256,7 @@ namespace Game.Spells
case AuraType.AddPctModifier:
if (m_spellmod == null)
{
SpellModifierByClassMask spellmod = new SpellModifierByClassMask(GetBase());
SpellModifierByClassMask spellmod = new(GetBase());
spellmod.op = (SpellModOp)GetMiscValue();
spellmod.type = GetAuraType() == AuraType.AddPctModifier ? SpellModType.Pct : SpellModType.Flat;
@@ -269,7 +269,7 @@ namespace Game.Spells
case AuraType.AddFlatModifierBySpellLabel:
if (m_spellmod == null)
{
SpellFlatModifierByLabel spellmod = new SpellFlatModifierByLabel(GetBase());
SpellFlatModifierByLabel spellmod = new(GetBase());
spellmod.op = (SpellModOp)GetMiscValue();
spellmod.type = SpellModType.LabelFlat;
@@ -283,7 +283,7 @@ namespace Game.Spells
case AuraType.AddPctModifierBySpellLabel:
if (m_spellmod == null)
{
SpellPctModifierByLabel spellmod = new SpellPctModifierByLabel(GetBase());
SpellPctModifierByLabel spellmod = new(GetBase());
spellmod.op = (SpellModOp)GetMiscValue();
spellmod.type = SpellModType.LabelPct;
+1 -1
View File
@@ -694,7 +694,7 @@ namespace Game.Spells
}
// Init dest coordinates
WorldLocation targetDest = new WorldLocation(destTarget);
WorldLocation targetDest = new(destTarget);
if (targetDest.GetMapId() == 0xFFFFFFFF)
targetDest.SetMapId(unitTarget.GetMapId());