diff options
| author | Meji <alvaromegias_46@hotmail.com> | 2021-12-25 15:27:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 15:27:58 +0100 |
| commit | 924182f692bde38d8fed85d5dbe7531a09790501 (patch) | |
| tree | ec5b5c5842315ad391d1da9cd236952159a03fd4 /sql | |
| parent | 8ac0388870519a085115454783dafed873c1535f (diff) | |
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).
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/updates/world/master/2021_12_25_02_world.sql | 3 |
1 files changed, 3 insertions, 0 deletions
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'); |
