aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author_manuel_ <manue.l@live.com.ar>2010-03-26 22:19:03 -0300
committer_manuel_ <manue.l@live.com.ar>2010-03-26 22:19:03 -0300
commit2cb7a3151213740623be7b99fe1f4b40c679ed42 (patch)
treeb15410f24c5820528accc42ee22f25bcc686f189 /src
parent49c5be6d802a1686bfc281c959b5769b5d5d9daf (diff)
Corrected script for Glyph of Feral Spirit, aura must be checked on Owner not Pet. By Gyullo.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Pet.cpp9
1 files changed, 1 insertions, 8 deletions
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));