Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
@@ -526,13 +526,13 @@ namespace Scripts.Northrend.Ulduar.FlameLeviathan
//! I also removed the spellInfo check
void DoBatteringRamIfReady()
{
if (me.isAttackReady())
if (me.IsAttackReady())
{
Unit target = Global.ObjAccessor.GetUnit(me, _pursueTarget);
if (me.IsWithinCombatRange(target, 30.0f))
{
DoCast(target, Spells.BatteringRam);
me.resetAttackTimer();
me.ResetAttackTimer();
}
}
}
@@ -17,7 +17,6 @@
using Framework.Constants;
using Framework.IO;
using Game.AI;
using Game.Entities;
using Game.Maps;
using Game.Network.Packets;