From 2cb7a3151213740623be7b99fe1f4b40c679ed42 Mon Sep 17 00:00:00 2001 From: _manuel_ Date: Fri, 26 Mar 2010 22:19:03 -0300 Subject: Corrected script for Glyph of Feral Spirit, aura must be checked on Owner not Pet. By Gyullo. --HG-- branch : trunk --- src/game/Pet.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 1f89e94754d..5bd42cfa007 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -883,14 +883,7 @@ bool Guardian::InitStatsForLevel(uint8 petlevel) SetCreateStat(STAT_INTELLECT, 28); SetCreateStat(STAT_SPIRIT, 27); } - if (GetEntry() == 29264) - { - float apbonus=0.35f; - // Glyph of Feral Spirit - if (AuraEffect *aurEff = m_owner->GetAuraEffect(63271, 0)) - apbonus += aurEff->GetAmount() / 100.0f; - } m_bonusdamage = 0; switch (petType) { @@ -982,7 +975,7 @@ bool Guardian::InitStatsForLevel(uint8 petlevel) SetCreateHealth(30*petlevel); float dmg_multiplier = 0.3f; - if (HasAura(63271)) // Glyph of Feral Spirit + if (m_owner->GetAuraEffect(63271, 0)) // Glyph of Feral Spirit dmg_multiplier = 0.6f; SetBonusDamage(int32(m_owner->GetTotalAttackPowerValue(BASE_ATTACK) * dmg_multiplier)); -- cgit v1.2.3