"*Fix Kindred Spirits.

*Fix typo causing auras SPELL_AURA_MOD_ATTACK_POWER_OF_ARMOR to modify ap with too big amount.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-06-16 22:46:17 +02:00
1 parent 7b3d740749
commit ab06dcc442
5 files changed
+33 -2

No files matched your search

+6
View File
@@ -13340,6 +13340,12 @@ void Unit::AddPetAura(PetAura const* petSpell)
if(GetTypeId() != TYPEID_PLAYER)
return;
// Aura already added - not need to add it twice
// This check is to prevent existing pet having aura applied twice (passive auras can stack)
// if aura has more than 1 dummy effect
if (m_petAuras.find(petSpell)!= m_petAuras.end())
return;
m_petAuras.insert(petSpell);
if(Pet* pet = ((Player*)this)->GetPet())
pet->CastPetAura(petSpell);