mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[8889] Allow non-permanent pets have auras from spell_pet_auras.
Also add one from related cases to DB.
This commit is contained in:
parent
01c852fee8
commit
fe70af7b5d
4 changed files with 7 additions and 5 deletions
|
|
@ -17574,7 +17574,8 @@ INSERT INTO `spell_pet_auras` VALUES
|
||||||
(23822, 0, 17252, 35703),
|
(23822, 0, 17252, 35703),
|
||||||
(23823, 0, 17252, 35704),
|
(23823, 0, 17252, 35704),
|
||||||
(23824, 0, 17252, 35705),
|
(23824, 0, 17252, 35705),
|
||||||
(23825, 0, 17252, 35706);
|
(23825, 0, 17252, 35706),
|
||||||
|
(58228, 0, 19668, 57989);
|
||||||
|
|
||||||
/*!40000 ALTER TABLE `spell_pet_auras` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `spell_pet_auras` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
|
||||||
4
sql/updates/9999_01_mangos_spell_pet_auras.sql
Normal file
4
sql/updates/9999_01_mangos_spell_pet_auras.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
DELETE FROM INTO spell_pet_auras WHERE aura = 57989;
|
||||||
|
|
||||||
|
INSERT INTO `spell_pet_auras` VALUES
|
||||||
|
(58228, 0, 19668, 57989);
|
||||||
|
|
@ -1882,9 +1882,6 @@ void Pet::CastPetAuras(bool current)
|
||||||
if(!owner || owner->GetTypeId()!=TYPEID_PLAYER)
|
if(!owner || owner->GetTypeId()!=TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!IsPermanentPetFor((Player*)owner))
|
|
||||||
return;
|
|
||||||
|
|
||||||
for(PetAuraSet::const_iterator itr = owner->m_petAuras.begin(); itr != owner->m_petAuras.end();)
|
for(PetAuraSet::const_iterator itr = owner->m_petAuras.begin(); itr != owner->m_petAuras.end();)
|
||||||
{
|
{
|
||||||
PetAura const* pa = *itr;
|
PetAura const* pa = *itr;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8888"
|
#define REVISION_NR "8889"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue