mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[8342] Iplement talent 53252 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
9c387ec9fd
commit
6a4b79cdc2
5 changed files with 30 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue