refactor(Scripts/Pet): Move Proto-Drake fly tier to DB (#27730)

This commit is contained in:
sogladev
2026-09-20 18:54:41 -03:00
committed by GitHub
parent 1936f6cd81
commit 0951838e05
2 changed files with 8 additions and 11 deletions
@@ -0,0 +1,8 @@
--
-- Replace `me->SetAnimTier(AnimTier::Fly)` with packed AnimTier in bytes1
SET @ENTRY := 32592;
DELETE FROM `creature_template_addon` WHERE `entry` = @ENTRY;
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(@ENTRY, 0, 0, 0x03000000, 0, 0, 0, '');
UPDATE `creature_template` SET `ScriptName` = '' WHERE (`entry` = 32592);
-11
View File
@@ -829,16 +829,6 @@ struct npc_pet_darting_hatchling : public NullCreatureAI
}
};
struct npc_pet_proto_drake_whelp : public NullCreatureAI
{
npc_pet_proto_drake_whelp(Creature* c) : NullCreatureAI(c) { }
void Reset() override
{
me->SetAnimTier(AnimTier::Fly);
}
};
void AddSC_generic_pet_scripts()
{
RegisterCreatureAI(npc_pet_gen_soul_trader_beacon);
@@ -854,5 +844,4 @@ void AddSC_generic_pet_scripts()
RegisterCreatureAI(npc_pet_gen_fetch_ball);
RegisterCreatureAI(npc_pet_gen_moth);
RegisterCreatureAI(npc_pet_darting_hatchling);
RegisterCreatureAI(npc_pet_proto_drake_whelp);
}