aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroffl <offl@users.noreply.github.com>2020-11-11 04:25:54 +0200
committeroffl <offl@users.noreply.github.com>2020-11-11 04:25:54 +0200
commited8bf7f0e2e67ca1eb65ffa05518fe29df526642 (patch)
treee43746998aece5cc2ac2edb9770da657e96ba483 /src
parent05fa1a46b36f81c177a503f7f5de14eb34830208 (diff)
DB/Creature: Convert & update support for Tonk Mine to SAI
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/World/npcs_special.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
index 1313af583d9..c22887dfd9b 100644
--- a/src/server/scripts/World/npcs_special.cpp
+++ b/src/server/scripts/World/npcs_special.cpp
@@ -1184,59 +1184,6 @@ public:
}
};
-enum TonkMine
-{
- SPELL_TONK_MINE_DETONATE = 25099
-};
-
-class npc_tonk_mine : public CreatureScript
-{
-public:
- npc_tonk_mine() : CreatureScript("npc_tonk_mine") { }
-
- struct npc_tonk_mineAI : public ScriptedAI
- {
- npc_tonk_mineAI(Creature* creature) : ScriptedAI(creature)
- {
- Initialize();
- me->SetReactState(REACT_PASSIVE);
- }
-
- void Initialize()
- {
- ExplosionTimer = 3000;
- }
-
- uint32 ExplosionTimer;
-
- void Reset() override
- {
- Initialize();
- }
-
- void JustEngagedWith(Unit* /*who*/) override { }
- void AttackStart(Unit* /*who*/) override { }
- void MoveInLineOfSight(Unit* /*who*/) override { }
-
-
- void UpdateAI(uint32 diff) override
- {
- if (ExplosionTimer <= diff)
- {
- DoCast(me, SPELL_TONK_MINE_DETONATE, true);
- me->setDeathState(DEAD); // unsummon it
- }
- else
- ExplosionTimer -= diff;
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_tonk_mineAI(creature);
- }
-};
-
enum TournamentPennantSpells
{
SPELL_PENNANT_STORMWIND_ASPIRANT = 62595,
@@ -2680,7 +2627,6 @@ void AddSC_npcs_special()
new npc_garments_of_quests();
new npc_guardian();
new npc_steam_tonk();
- new npc_tonk_mine();
new npc_tournament_mount();
new npc_brewfest_reveler();
RegisterCreatureAI(npc_training_dummy);