Corrected script for Glyph of Feral Spirit, aura must be checked on Owner not Pet. By Gyullo.

--HG--
branch : trunk
This commit is contained in:
_manuel_
2010-03-26 22:19:03 -03:00
parent 49c5be6d80
commit 2cb7a31512

View File

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