[8342] Iplement talent 53252 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
pasdVn 2009-08-09 17:47:14 +04:00 committed by VladimirMangos
parent 9c387ec9fd
commit 6a4b79cdc2
5 changed files with 30 additions and 2 deletions

View file

@ -5265,6 +5265,26 @@ void Spell::EffectScriptEffect(uint32 effIndex)
m_caster->CastCustomSpell(target, spellId, &basePoint, 0, 0, false);
return;
}
case 53412: // Invigoration (pet triggered script, master targeted)
{
if (!unitTarget)
return;
Unit::AuraList const& auras = unitTarget->GetAurasByType(SPELL_AURA_DUMMY);
for(Unit::AuraList::const_iterator i = auras.begin();i != auras.end(); ++i)
{
// Invigoration (master talent)
if ((*i)->GetModifier()->m_miscvalue == 8 && (*i)->GetSpellProto()->SpellIconID == 3487)
{
if (roll_chance_i((*i)->GetModifier()->m_amount))
{
unitTarget->CastSpell(unitTarget, 53398, true, NULL, (*i), m_caster->GetGUID());
break;
}
}
}
return;
}
default:
break;
}