From 924182f692bde38d8fed85d5dbe7531a09790501 Mon Sep 17 00:00:00 2001 From: Meji Date: Sat, 25 Dec 2021 15:27:58 +0100 Subject: Core/BattlePets: Misc fixes (#27446) * Added script for "Summon Battle Pet" spell (118301). * Set the saved display of the battle pet when summoning it. * If a summon has SummonPropertiesFlags::SummonFromBattlePetJournal it will remove NpcFlag UNIT_NPC_FLAG_WILD_BATTLE_PET (Wild battle pets). * When a creature is summoned with SummonTitle::Companion, it will check to see if it has SummonPropertiesFlags::SummonFromBattlePetJournal before updating the battle pet's update fields. (If you have a summoned battle pet and summon a creature with that SummonTitle, it will incorrectly update the battle pet's update fields with the summoned battle pet's data). * Implemented SummonPropertiesFlags::UseCreatureLevel. If a summon has this flag, it will use the owner's level (If the summon doesn't have SummonProperties it will always use the selected level). --- sql/updates/world/master/2021_12_25_02_world.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sql/updates/world/master/2021_12_25_02_world.sql (limited to 'sql/updates') diff --git a/sql/updates/world/master/2021_12_25_02_world.sql b/sql/updates/world/master/2021_12_25_02_world.sql new file mode 100644 index 00000000000..59398eeb29d --- /dev/null +++ b/sql/updates/world/master/2021_12_25_02_world.sql @@ -0,0 +1,3 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_summon_battle_pet'; +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(118301,'spell_summon_battle_pet'); -- cgit v1.2.3