[8239] Implement talent 44745 and ranks.

Thanks to KAPATEJIb for proper rank and chance selection.
Thanks to raftom for proper aura remove mode detection
Thanks to me for proper triggered spell casting affect diminitshing return group selection.
This commit is contained in:
VladimirMangos 2009-07-24 23:24:30 +04:00
parent 7b42377980
commit c248c358be
2 changed files with 19 additions and 1 deletions

View file

@ -5776,6 +5776,24 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
m_modifier.m_amount += (int32)DoneActualBenefit;
}
// Shattered Barrier
if(!apply && m_spellProto->SpellIconID == 32 && m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE)
{
Unit* caster = GetCaster();
if (!((m_removeMode == AURA_REMOVE_BY_DEFAULT && !m_modifier.m_amount) || m_removeMode == AURA_REMOVE_BY_DISPEL))
return;
if (caster->HasAura(44745,0)) // rank 1
{
if(roll_chance_i(50))
caster->CastSpell(caster, 55080, true, NULL, this);
}
else if (caster->HasAura(54787,0)) // rank 2
{
caster->CastSpell(caster, 55080, true, NULL, this);
}
}
if (!apply && caster &&
// Power Word: Shield
m_spellProto->SpellFamilyName == SPELLFAMILY_PRIEST && m_spellProto->Mechanic == MECHANIC_SHIELD &&

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8238"
#define REVISION_NR "8239"
#endif // __REVISION_NR_H__