aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authorclick <none@none>2010-07-19 14:17:30 +0200
committerclick <none@none>2010-07-19 14:17:30 +0200
commitba36f1eb23885260a832a41e9264b74881c8d285 (patch)
tree89e6eed8a2f2aa7dc51fbe7e4d7d627c1cc67a38 /src/server/scripts/EasternKingdoms
parent84c6fa001ccbe8b2ce5ae2f1a756c7ba2fbfe36f (diff)
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
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/AlteracValley/boss_drekthar.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/AlteracValley/boss_galvangar.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/AlteracValley/boss_vanndar.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/BlackrockSpire/boss_gyth.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp18
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/Scholomance/boss_jandice_barov.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/hinterlands.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/silverpine_forest.cpp2
-rwxr-xr-xsrc/server/scripts/EasternKingdoms/wetlands.cpp2
12 files changed, 20 insertions, 20 deletions
diff --git a/src/server/scripts/EasternKingdoms/AlteracValley/boss_drekthar.cpp b/src/server/scripts/EasternKingdoms/AlteracValley/boss_drekthar.cpp
index 5488a85af87..385812c6776 100755
--- a/src/server/scripts/EasternKingdoms/AlteracValley/boss_drekthar.cpp
+++ b/src/server/scripts/EasternKingdoms/AlteracValley/boss_drekthar.cpp
@@ -62,7 +62,7 @@ struct boss_drektharAI : public ScriptedAI
uiYellTimer = urand(20*IN_MILLISECONDS,30*IN_MILLISECONDS); //20 to 30 seconds
}
- void Aggro(Unit * /*who*/)
+ void EnterCombat(Unit * /*who*/)
{
DoScriptText(YELL_AGGRO, me);
}
diff --git a/src/server/scripts/EasternKingdoms/AlteracValley/boss_galvangar.cpp b/src/server/scripts/EasternKingdoms/AlteracValley/boss_galvangar.cpp
index 2c30c7c16b4..380a841fb7c 100755
--- a/src/server/scripts/EasternKingdoms/AlteracValley/boss_galvangar.cpp
+++ b/src/server/scripts/EasternKingdoms/AlteracValley/boss_galvangar.cpp
@@ -55,7 +55,7 @@ struct boss_galvangarAI : public ScriptedAI
uiResetTimer = 5*IN_MILLISECONDS;
}
- void Aggro(Unit * /*who*/)
+ void EnterCombat(Unit * /*who*/)
{
DoScriptText(YELL_AGGRO, me);
}
diff --git a/src/server/scripts/EasternKingdoms/AlteracValley/boss_vanndar.cpp b/src/server/scripts/EasternKingdoms/AlteracValley/boss_vanndar.cpp
index cb01944b998..6ae75c0fa06 100755
--- a/src/server/scripts/EasternKingdoms/AlteracValley/boss_vanndar.cpp
+++ b/src/server/scripts/EasternKingdoms/AlteracValley/boss_vanndar.cpp
@@ -60,7 +60,7 @@ struct boss_vanndarAI : public ScriptedAI
uiYellTimer = urand(20*IN_MILLISECONDS,30*IN_MILLISECONDS);
}
- void Aggro(Unit * /*who*/)
+ void EnterCombat(Unit * /*who*/)
{
DoScriptText(YELL_AGGRO, me);
}
diff --git a/src/server/scripts/EasternKingdoms/BlackrockSpire/boss_gyth.cpp b/src/server/scripts/EasternKingdoms/BlackrockSpire/boss_gyth.cpp
index dec948f68df..676115b0595 100755
--- a/src/server/scripts/EasternKingdoms/BlackrockSpire/boss_gyth.cpp
+++ b/src/server/scripts/EasternKingdoms/BlackrockSpire/boss_gyth.cpp
@@ -178,7 +178,7 @@ struct boss_gythAI : public ScriptedAI
&& me->GetHealth() > 0)
{
//summon Rend and Change model to normal Gyth
- //Inturrupt any spell casting
+ //Interrupt any spell casting
me->InterruptNonMeleeSpells(false);
//Gyth model
me->SetDisplayId(9806);
diff --git a/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp b/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp
index 85d1537ffd1..d6a31cda4af 100755
--- a/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp
+++ b/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp
@@ -292,7 +292,7 @@ struct boss_victor_nefariusAI : public ScriptedAI
//Teleport Victor Nefarius way out of the map
//sMapMgr.GetMap(me->GetMapId(), me)->CreatureRelocation(me,0,0,-5000,0);
- //Inturrupt any spell casting
+ //Interrupt any spell casting
me->InterruptNonMeleeSpells(false);
//Root self
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
index c3a2a85e74c..3e3f7ffb9c4 100755
--- a/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
+++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
@@ -247,7 +247,7 @@ struct boss_netherspiteAI : public ScriptedAI
Door->SetGoState(open ? GO_STATE_ACTIVE : GO_STATE_READY);
}
- void Aggro(Unit * /*who*/)
+ void EnterCombat(Unit * /*who*/)
{
HandleDoors(false);
SwitchToPortalPhase();
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp
index ace2b186342..37ea79fefbe 100755
--- a/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp
+++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp
@@ -109,7 +109,7 @@ struct boss_aranAI : public ScriptedAI
uint32 FireCooldown;
uint32 FrostCooldown;
- uint32 DrinkInturruptTimer;
+ uint32 DrinkInterruptTimer;
bool ElementalsSpawned;
bool Drinking;
@@ -133,7 +133,7 @@ struct boss_aranAI : public ScriptedAI
FireCooldown = 0;
FrostCooldown = 0;
- DrinkInturruptTimer = 10000;
+ DrinkInterruptTimer = 10000;
ElementalsSpawned = false;
Drinking = false;
@@ -261,11 +261,11 @@ struct boss_aranAI : public ScriptedAI
DoCast(me, SPELL_CONJURE, false);
DoCast(me, SPELL_DRINK, false);
me->SetStandState(UNIT_STAND_STATE_SIT);
- DrinkInturruptTimer = 10000;
+ DrinkInterruptTimer = 10000;
}
}
- //Drink Inturrupt
+ //Drink Interrupt
if (Drinking && DrinkInturrupted)
{
Drinking = false;
@@ -275,10 +275,10 @@ struct boss_aranAI : public ScriptedAI
DoCast(me, SPELL_POTION, false);
}
- //Drink Inturrupt Timer
+ //Drink Interrupt Timer
if (Drinking && !DrinkInturrupted)
- if (DrinkInturruptTimer >= diff)
- DrinkInturruptTimer -= diff;
+ if (DrinkInterruptTimer >= diff)
+ DrinkInterruptTimer -= diff;
else
{
me->SetStandState(UNIT_STAND_STATE_STAND);
@@ -476,13 +476,13 @@ struct boss_aranAI : public ScriptedAI
void SpellHit(Unit* /*pAttacker*/, const SpellEntry* Spell)
{
- //We only care about inturrupt effects and only if they are durring a spell currently being casted
+ //We only care about interrupt effects and only if they are durring a spell currently being casted
if ((Spell->Effect[0] != SPELL_EFFECT_INTERRUPT_CAST &&
Spell->Effect[1] != SPELL_EFFECT_INTERRUPT_CAST &&
Spell->Effect[2] != SPELL_EFFECT_INTERRUPT_CAST) || !me->IsNonMeleeSpellCasted(false))
return;
- //Inturrupt effect
+ //Interrupt effect
me->InterruptNonMeleeSpells(false);
//Normally we would set the cooldown equal to the spell duration
diff --git a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp
index 3e5ddd8cce2..bc4049bb1fb 100755
--- a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp
+++ b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp
@@ -597,7 +597,7 @@ struct boss_ellris_duskhallowAI : public boss_priestess_lackey_commonAI
boss_priestess_lackey_commonAI::Reset();
}
- void Aggro(Unit* /*pWho*/)
+ void EnterCombat(Unit* /*pWho*/)
{
DoCast(me, SPELL_SUMMON_IMP);
}
diff --git a/src/server/scripts/EasternKingdoms/Scholomance/boss_jandice_barov.cpp b/src/server/scripts/EasternKingdoms/Scholomance/boss_jandice_barov.cpp
index 370cd221029..63ba5885573 100755
--- a/src/server/scripts/EasternKingdoms/Scholomance/boss_jandice_barov.cpp
+++ b/src/server/scripts/EasternKingdoms/Scholomance/boss_jandice_barov.cpp
@@ -93,7 +93,7 @@ struct boss_jandicebarovAI : public ScriptedAI
if (!Invisible && Illusion_Timer <= diff)
{
- //Inturrupt any spell casting
+ //Interrupt any spell casting
me->InterruptNonMeleeSpells(false);
me->setFaction(35);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
diff --git a/src/server/scripts/EasternKingdoms/hinterlands.cpp b/src/server/scripts/EasternKingdoms/hinterlands.cpp
index 13f44f47ff4..12c5a3acda3 100755
--- a/src/server/scripts/EasternKingdoms/hinterlands.cpp
+++ b/src/server/scripts/EasternKingdoms/hinterlands.cpp
@@ -101,7 +101,7 @@ struct npc_00x09hlAI : public npc_escortAI
}
}
- void Aggro(Unit* pWho)
+ void EnterCombat(Unit* pWho)
{
if (pWho->GetEntry() == NPC_MARAUDING_OWL || pWho->GetEntry() == NPC_VILE_AMBUSHER)
return;
diff --git a/src/server/scripts/EasternKingdoms/silverpine_forest.cpp b/src/server/scripts/EasternKingdoms/silverpine_forest.cpp
index 4b04083f4cd..cd88974788e 100755
--- a/src/server/scripts/EasternKingdoms/silverpine_forest.cpp
+++ b/src/server/scripts/EasternKingdoms/silverpine_forest.cpp
@@ -233,7 +233,7 @@ struct pyrewood_ambushAI : public ScriptedAI
}
}
- void Aggro(Unit * /*who*/){}
+ void EnterCombat(Unit * /*who*/){}
void JustSummoned(Creature *pSummoned)
{
diff --git a/src/server/scripts/EasternKingdoms/wetlands.cpp b/src/server/scripts/EasternKingdoms/wetlands.cpp
index b7b92462f11..084b673dacd 100755
--- a/src/server/scripts/EasternKingdoms/wetlands.cpp
+++ b/src/server/scripts/EasternKingdoms/wetlands.cpp
@@ -71,7 +71,7 @@ struct npc_tapoke_slim_jahnAI : public npc_escortAI
}
}
- void Aggro(Unit* /*pWho*/)
+ void EnterCombat(Unit* /*pWho*/)
{
Player* pPlayer = GetPlayerForEscort();