fix(Scripts/World): Set AnimTier of Proto-Drake Whelp to fly (#24151)
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
--
|
||||||
|
UPDATE `creature_template` SET `ScriptName` = 'npc_pet_proto_drake_whelp' WHERE (`entry` = 32592);
|
||||||
|
UPDATE `creature_template_addon` SET `bytes1` = 0 WHERE (`entry` = 32592);
|
||||||
|
|
||||||
|
DELETE FROM `creature_template_movement` WHERE (`CreatureId` = 32592);
|
||||||
|
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
|
||||||
|
(32592, 2, 0, 1, 0, 0, 0, 0);
|
||||||
@@ -821,6 +821,16 @@ 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()
|
void AddSC_generic_pet_scripts()
|
||||||
{
|
{
|
||||||
RegisterCreatureAI(npc_pet_gen_soul_trader_beacon);
|
RegisterCreatureAI(npc_pet_gen_soul_trader_beacon);
|
||||||
@@ -836,4 +846,5 @@ void AddSC_generic_pet_scripts()
|
|||||||
RegisterCreatureAI(npc_pet_gen_fetch_ball);
|
RegisterCreatureAI(npc_pet_gen_fetch_ball);
|
||||||
RegisterCreatureAI(npc_pet_gen_moth);
|
RegisterCreatureAI(npc_pet_gen_moth);
|
||||||
RegisterCreatureAI(npc_pet_darting_hatchling);
|
RegisterCreatureAI(npc_pet_darting_hatchling);
|
||||||
|
RegisterCreatureAI(npc_pet_proto_drake_whelp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user