mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user