[8889] Allow non-permanent pets have auras from spell_pet_auras.

Also add one from related cases to DB.
This commit is contained in:
VladimirMangos 2009-11-29 17:27:51 +03:00
parent 01c852fee8
commit fe70af7b5d
4 changed files with 7 additions and 5 deletions

View file

@ -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;

View file

@ -0,0 +1,4 @@
DELETE FROM INTO spell_pet_auras WHERE aura = 57989;
INSERT INTO `spell_pet_auras` VALUES
(58228, 0, 19668, 57989);

View file

@ -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;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8888"
#define REVISION_NR "8889"
#endif // __REVISION_NR_H__