* fix of Spiritual Attunement

--HG--
branch : trunk
This commit is contained in:
Iskander
2009-06-20 21:53:59 +02:00
parent 1dd1f6db34
commit a8d305c8c2
3 changed files with 21 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
# 1589
-- Spiritual Attunement
UPDATE `spell_proc_event` SET `procFlags` = `procFlags`|0x80000 WHERE `entry` IN ('31785','33776');
+14
View File
@@ -1140,6 +1140,20 @@ void Aura::HandleAddModifier(bool apply, bool Real)
if(apply) if(apply)
m_target->CastSpell(m_target,45471,true); m_target->CastSpell(m_target,45471,true);
} }
if(spellInfo->SpellFamilyName==SPELLFAMILY_PALADIN && (spellFamilyMask & 0x0000100000000000LL)) // Spiritual Attunement
{
if(m_target->HasAura(31785,0)) // rank 1
{
m_target->RemoveAurasDueToSpell(31785);
m_target->CastSpell(m_target,31785,true);
}
if(m_target->HasAura(33776,0)) // rank 2
{
m_target->RemoveAurasDueToSpell(33776);
m_target->CastSpell(m_target,33776,true);
}
}
} }
void Aura::TriggerSpell() void Aura::TriggerSpell()
+4 -2
View File
@@ -5908,9 +5908,11 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
return false; return false;
// heal amount // heal amount
basepoints0 = triggeredByAura->GetModifier()->m_amount*damage/100; basepoints0 = triggeredByAura->GetModifierValue()*std::min(damage,GetMaxHealth() - GetHealth())/100;
target = this; target = this;
triggered_spell_id = 31786;
if(basepoints0)
triggered_spell_id = 31786;
break; break;
} }
// Paladin Tier 6 Trinket (Ashtongue Talisman of Zeal) // Paladin Tier 6 Trinket (Ashtongue Talisman of Zeal)