From 3a04ec2b34af8a1a3931e571e16919f48926a0f9 Mon Sep 17 00:00:00 2001 From: pasdVn Date: Wed, 5 Aug 2009 11:02:55 +0200 Subject: [PATCH] added pet talent "Invigoration" (53252 and ranks) --- src/game/SpellEffects.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index dfb0c22b58d..2f4795cac82 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5232,6 +5232,19 @@ void Spell::EffectScriptEffect(uint32 effIndex) m_caster->CastCustomSpell(unitTarget, spellId, &basePoint, 0, 0, false); return; } + // Invigoration + case 53412: + { + Unit::AuraList const& auras = unitTarget->GetAurasByType(SPELL_AURA_DUMMY); + for(Unit::AuraList::const_iterator i = auras.begin();i != auras.end(); ++i) + 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()); + return; + } + return; + } default: break; }