Some refactoring of code. and some cleanups
This commit is contained in:
@@ -554,7 +554,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
Index = 0xFFFFFFFF;
|
||||
|
||||
BurningPitchId = Instance.GetData(DataTypes.TeamInInstance) == (uint)Team.Horde ? GunshipSpells.BurningPitchA : GunshipSpells.BurningPitchH;
|
||||
me.setRegeneratingHealth(false);
|
||||
me.SetRegeneratingHealth(false);
|
||||
}
|
||||
|
||||
public override void SetData(uint type, uint data)
|
||||
@@ -680,7 +680,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
_summonedFirstMage = false;
|
||||
_died = false;
|
||||
|
||||
me.setRegeneratingHealth(false);
|
||||
me.SetRegeneratingHealth(false);
|
||||
}
|
||||
|
||||
public override void DamageTaken(Unit source, ref uint damage)
|
||||
@@ -845,7 +845,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
|
||||
_controller.ResetSlots(Team.Horde);
|
||||
_controller.SetTransport(creature.GetTransport());
|
||||
me.setRegeneratingHealth(false);
|
||||
me.SetRegeneratingHealth(false);
|
||||
me.m_CombatDistance = 70.0f;
|
||||
}
|
||||
|
||||
@@ -1075,10 +1075,10 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
|
||||
if (me.IsWithinMeleeRange(me.GetVictim()))
|
||||
DoMeleeAttackIfReady();
|
||||
else if (me.isAttackReady())
|
||||
else if (me.IsAttackReady())
|
||||
{
|
||||
DoCastVictim(GunshipSpells.RendingThrow);
|
||||
me.resetAttackTimer();
|
||||
me.ResetAttackTimer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1104,7 +1104,7 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
|
||||
_controller.ResetSlots(Team.Alliance);
|
||||
_controller.SetTransport(creature.GetTransport());
|
||||
me.setRegeneratingHealth(false);
|
||||
me.SetRegeneratingHealth(false);
|
||||
me.m_CombatDistance = 70.0f;
|
||||
}
|
||||
|
||||
@@ -1325,10 +1325,10 @@ namespace Scripts.Northrend.IcecrownCitadel
|
||||
|
||||
if (me.IsWithinMeleeRange(me.GetVictim()))
|
||||
DoMeleeAttackIfReady();
|
||||
else if (me.isAttackReady())
|
||||
else if (me.IsAttackReady())
|
||||
{
|
||||
DoCastVictim(GunshipSpells.RendingThrow);
|
||||
me.resetAttackTimer();
|
||||
me.ResetAttackTimer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1710,7 +1710,7 @@ Fall Time: 824
|
||||
|
||||
void HandlePeriodic(AuraEffect aurEff)
|
||||
{
|
||||
if (GetTarget().moveSpline.Finalized())
|
||||
if (GetTarget().MoveSpline.Finalized())
|
||||
Remove(AuraRemoveMode.Expire);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user