diff options
author | offl <offl@users.noreply.github.com> | 2020-11-11 04:25:54 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-01 00:00:39 +0100 |
commit | 39e9983205b5ff384e22260029b5c4ae09056222 (patch) | |
tree | 62ca2b773f8b1b552731f4643665f0b5d3c5f91e /src | |
parent | c883c0ee1f4104c0c43adca0055f02865d8fae2a (diff) |
DB/Creature: Convert & update support for Tonk Mine to SAI
(cherry picked from commit ed8bf7f0e2e67ca1eb65ffa05518fe29df526642)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/World/npcs_special.cpp | 54 |
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 7ded28f0e5d..23856632b1a 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -1181,59 +1181,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, @@ -2578,7 +2525,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); |