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:
click
2010-07-19 14:17:30 +02:00
parent 84c6fa001c
commit ba36f1eb23
28 changed files with 43 additions and 43 deletions
@@ -96,7 +96,7 @@ struct boss_noxxionAI : public ScriptedAI
//Adds_Timer
if (!Invisible && Adds_Timer <= diff)
{
//Inturrupt any spell casting
//Interrupt any spell casting
//me->m_canMove = true;
me->InterruptNonMeleeSpells(false);
me->setFaction(35);
+1 -1
View File
@@ -325,7 +325,7 @@ struct npc_muglashAI : public npc_escortAI
}
}
void Aggro(Unit* /*pWho*/)
void EnterCombat(Unit* /*pWho*/)
{
if (HasEscortState(STATE_ESCORT_PAUSED))
{
+1 -1
View File
@@ -125,7 +125,7 @@ struct npc_giltharesAI : public npc_escortAI
}
}
void Aggro(Unit* pWho)
void EnterCombat(Unit* pWho)
{
//not always use
if (rand()%4)