More refactoring of code.

This commit is contained in:
hondacrx
2019-09-23 21:41:13 -04:00
parent 2418715800
commit 570aebce26
176 changed files with 2261 additions and 2265 deletions
+4 -4
View File
@@ -369,7 +369,7 @@ namespace Game
}
}
spell.prepare(spell.m_targets);
spell.Prepare(spell.m_targets);
}
else
{
@@ -381,7 +381,7 @@ namespace Game
if (!pet.GetSpellHistory().HasCooldown(spellid))
pet.GetSpellHistory().ResetCooldown(spellid, true);
spell.finish(false);
spell.Finish(false);
spell.Dispose();
// reset specific flags in case of spell fail. AI will reset other flags
@@ -692,7 +692,7 @@ namespace Game
spellPrepare.ServerCastID = spell.m_castId;
SendPacket(spellPrepare);
spell.prepare(targets);
spell.Prepare(targets);
}
else
{
@@ -701,7 +701,7 @@ namespace Game
if (!caster.GetSpellHistory().HasCooldown(spellInfo.Id))
caster.GetSpellHistory().ResetCooldown(spellInfo.Id, true);
spell.finish(false);
spell.Finish(false);
spell.Dispose();
}
}