From fe70af7b5dc64006eafe87badb0e6a6d793f7c0b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sun, 29 Nov 2009 17:27:51 +0300 Subject: [PATCH] [8889] Allow non-permanent pets have auras from `spell_pet_auras`. Also add one from related cases to DB. --- sql/mangos.sql | 3 ++- sql/updates/9999_01_mangos_spell_pet_auras.sql | 4 ++++ src/game/Pet.cpp | 3 --- src/shared/revision_nr.h | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 sql/updates/9999_01_mangos_spell_pet_auras.sql diff --git a/sql/mangos.sql b/sql/mangos.sql index 483090fcc..e9090614e 100644 --- a/sql/mangos.sql +++ b/sql/mangos.sql @@ -17574,7 +17574,8 @@ INSERT INTO `spell_pet_auras` VALUES (23822, 0, 17252, 35703), (23823, 0, 17252, 35704), (23824, 0, 17252, 35705), -(23825, 0, 17252, 35706); +(23825, 0, 17252, 35706), +(58228, 0, 19668, 57989); /*!40000 ALTER TABLE `spell_pet_auras` ENABLE KEYS */; UNLOCK TABLES; diff --git a/sql/updates/9999_01_mangos_spell_pet_auras.sql b/sql/updates/9999_01_mangos_spell_pet_auras.sql new file mode 100644 index 000000000..1a59d584a --- /dev/null +++ b/sql/updates/9999_01_mangos_spell_pet_auras.sql @@ -0,0 +1,4 @@ +DELETE FROM INTO spell_pet_auras WHERE aura = 57989; + +INSERT INTO `spell_pet_auras` VALUES +(58228, 0, 19668, 57989); \ No newline at end of file diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index b828c984c..1a9af6755 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1882,9 +1882,6 @@ void Pet::CastPetAuras(bool current) if(!owner || owner->GetTypeId()!=TYPEID_PLAYER) return; - if(!IsPermanentPetFor((Player*)owner)) - return; - for(PetAuraSet::const_iterator itr = owner->m_petAuras.begin(); itr != owner->m_petAuras.end();) { PetAura const* pa = *itr; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index cf95d2fcd..16b52210b 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8888" + #define REVISION_NR "8889" #endif // __REVISION_NR_H__