From 11cc5c0d3bd46b5e68bb549625ef9ca7294deb21 Mon Sep 17 00:00:00 2001 From: Meji Date: Sat, 16 Oct 2021 12:15:03 +0200 Subject: Core/BattlePets: Misc fixes (#27057) * Rename WorldPackets::BattlePet::BattlePet::CollarID to WorldPackets::BattlePet::BattlePet::DisplayID * Use the DisplayID field to store the model of the battle pet. If the species has BattlePetSpeciesFlags::RandomDisplay, nothing is stored. Otherwise a random model is chosen from those available * Stored DisplayID in ITEM_MODIFIER_BATTLE_PET_DISPLAY_ID when caging the battle pet (previously the CreatureID was being stored) * Modified SendPlaySpellVisual function to allow sending Target and TargetPosition at the same time * Added SpellVisual when uncaging --- sql/updates/auth/master/2021_10_16_00_auth.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 sql/updates/auth/master/2021_10_16_00_auth.sql (limited to 'sql/updates') diff --git a/sql/updates/auth/master/2021_10_16_00_auth.sql b/sql/updates/auth/master/2021_10_16_00_auth.sql new file mode 100644 index 00000000000..c0dfb9a29a1 --- /dev/null +++ b/sql/updates/auth/master/2021_10_16_00_auth.sql @@ -0,0 +1 @@ +ALTER TABLE `battle_pets` ADD `displayId` int(11) NOT NULL DEFAULT '0' AFTER `breed`; -- cgit v1.2.3