mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
refactor(Scripts/Pet): Move Proto-Drake fly tier to DB (#27730)
This commit is contained in:
@@ -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);
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user