aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2012-12-17 05:39:04 +0100
committerclick <click@gonnamakeyou.com>2012-12-17 05:39:04 +0100
commitaa3980c744fcb102e18319f21305576ccb0da5c9 (patch)
treeeded863bdcc11a7194fffa476dc8e2a71a1439df /src/server/scripts
parent1f88f81c5a8da1ce7e1f4c52223884f88d9945af (diff)
Core: Remove tabs, fix whitespace and fix nonPCH properly (5am, too late for this stuff...)
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Northrend/sholazar_basin.cpp81
1 files changed, 41 insertions, 40 deletions
diff --git a/src/server/scripts/Northrend/sholazar_basin.cpp b/src/server/scripts/Northrend/sholazar_basin.cpp
index f5f99576aeb..f732497f278 100644
--- a/src/server/scripts/Northrend/sholazar_basin.cpp
+++ b/src/server/scripts/Northrend/sholazar_basin.cpp
@@ -35,8 +35,9 @@ EndContentData */
#include "ScriptedEscortAI.h"
#include "SpellScript.h"
#include "SpellAuras.h"
+#include "Vehicle.h"
+#include "CombatAI.h"
#include "Player.h"
-#include "VehicleAI.h"
/*######
## npc_injured_rainspeaker_oracle
@@ -993,50 +994,50 @@ public:
may be easily converted to SAI when they get.*/
enum SongOfWindAndWater
{
- // Spells
- SPELL_DEVOUR_WIND = 52862,
- SPELL_DEVOUR_WATER = 52864,
- // NPCs
- NPC_HAIPHOON_WATER = 28999,
- NPC_HAIPHOON_AIR = 28985
+ // Spells
+ SPELL_DEVOUR_WIND = 52862,
+ SPELL_DEVOUR_WATER = 52864,
+ // NPCs
+ NPC_HAIPHOON_WATER = 28999,
+ NPC_HAIPHOON_AIR = 28985
};
class npc_haiphoon : public CreatureScript
{
public:
- npc_haiphoon() : CreatureScript("npc_haiphoon") { }
-
- struct npc_haiphoonAI : public VehicleAI
- {
- npc_haiphoonAI(Creature* creature) : VehicleAI(creature) { }
-
- void SpellHitTarget(Unit* target, SpellInfo const* spell)
- {
- if (target == me)
- return;
-
- if (spell->Id == SPELL_DEVOUR_WIND)
- {
- if (Player* player = me->GetCharmerOrOwnerPlayerOrPlayerItself())
- {
- me->UpdateEntry(NPC_HAIPHOON_AIR);
- }
- }
-
- if (spell->Id == SPELL_DEVOUR_WATER)
- {
- if (Player* player = me->GetCharmerOrOwnerPlayerOrPlayerItself())
- {
- me->UpdateEntry(NPC_HAIPHOON_WATER);
- }
- }
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const
- {
- return new npc_haiphoonAI(creature);
- }
+ npc_haiphoon() : CreatureScript("npc_haiphoon") { }
+
+ struct npc_haiphoonAI : public VehicleAI
+ {
+ npc_haiphoonAI(Creature* creature) : VehicleAI(creature) { }
+
+ void SpellHitTarget(Unit* target, SpellInfo const* spell)
+ {
+ if (target == me)
+ return;
+
+ if (spell->Id == SPELL_DEVOUR_WIND)
+ {
+ if (Player* player = me->GetCharmerOrOwnerPlayerOrPlayerItself())
+ {
+ me->UpdateEntry(NPC_HAIPHOON_AIR);
+ }
+ }
+
+ if (spell->Id == SPELL_DEVOUR_WATER)
+ {
+ if (Player* player = me->GetCharmerOrOwnerPlayerOrPlayerItself())
+ {
+ me->UpdateEntry(NPC_HAIPHOON_WATER);
+ }
+ }
+ }
+ };
+
+ CreatureAI* GetAI(Creature* creature) const
+ {
+ return new npc_haiphoonAI(creature);
+ }
};
void AddSC_sholazar_basin()