From 3a4ce889eacb0d58842eeb45c9421510e4cd0cba Mon Sep 17 00:00:00 2001 From: offl Date: Tue, 8 Dec 2020 13:09:20 +0200 Subject: DB/Creature: Properly apply CREATURE_FLAG_EXTRA_NO_SKILLGAIN Closes #25674 (cherry picked from commit cc98f68ac7fa06c134463903c5c887a7ad2f72a5) --- src/server/scripts/World/npcs_special.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index 23856632b1a..bd568901191 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -1457,20 +1457,9 @@ class npc_brewfest_reveler : public CreatureScript } }; -enum TrainingDummy -{ - NPC_ADVANCED_TARGET_DUMMY = 2674, - NPC_TARGET_DUMMY = 2673 -}; - struct npc_training_dummy : NullCreatureAI { - npc_training_dummy(Creature* creature) : NullCreatureAI(creature) - { - uint32 const entry = me->GetEntry(); - if (entry == NPC_TARGET_DUMMY || entry == NPC_ADVANCED_TARGET_DUMMY) - me->DespawnOrUnsummon(16s); - } + npc_training_dummy(Creature* creature) : NullCreatureAI(creature) { } void DamageTaken(Unit* attacker, uint32& damage) override { -- cgit v1.2.3