Clean up old (and partially unused) Aggro() function and use EnterCombat() instead + fix some minor enum-typos (INTURRUPT -> INTERRUPT)
(fix by Azazel) --HG-- branch : trunk
This commit is contained in:
@@ -59,7 +59,7 @@ struct boss_emerissAI : public ScriptedAI
|
||||
m_uiCorruptionsCasted = 0;
|
||||
}
|
||||
|
||||
void Aggro(Unit* /*pWho*/)
|
||||
void EnterCombat(Unit* /*pWho*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ struct boss_taerarAI : public ScriptedAI
|
||||
{
|
||||
if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
//Inturrupt any spell casting
|
||||
//Interrupt any spell casting
|
||||
me->InterruptNonMeleeSpells(false);
|
||||
|
||||
//horrible workaround, need to fix
|
||||
|
||||
@@ -1691,7 +1691,7 @@ struct mob_mojoAI : public ScriptedAI
|
||||
if (Unit* own = me->GetOwner())
|
||||
me->GetMotionMaster()->MoveFollow(own,0,0);
|
||||
}
|
||||
void Aggro(Unit * /*who*/){}
|
||||
void EnterCombat(Unit * /*who*/){}
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (me->HasAura(20372))
|
||||
|
||||
Reference in New Issue
Block a user