Core/Spells: Implemented Druid T10 4P restoration bonus

This commit is contained in:
Shauren
2011-01-31 14:51:42 +01:00
parent 08f251bdb0
commit 42007bb0a9
7 changed files with 202 additions and 136 deletions
+17 -1
View File
@@ -4659,7 +4659,7 @@ void Unit::ProcDamageAndSpell(Unit *pVictim, uint32 procAttacker, uint32 procVic
{
// Not much to do if no flags are set.
if (procAttacker)
ProcDamageAndSpellFor(false, pVictim,procAttacker, procExtra,attType, procSpell, amount, procAura);
ProcDamageAndSpellFor(false, pVictim, procAttacker, procExtra,attType, procSpell, amount, procAura);
// Now go on with a victim's events'n'auras
// Not much to do if no flags are set or there is no victim
if (pVictim && pVictim->isAlive() && procVictim)
@@ -6208,6 +6208,22 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
}
break;
}
// Item - Druid T10 Restoration 4P Bonus (Rejuvenation)
case 70664:
{
// Proc only from normal Rejuvenation
if (procSpell->SpellVisual[0] != 32)
return false;
Player* caster = ToPlayer();
if (!caster)
return false;
if (!caster->GetGroup() && pVictim == this)
return false;
CastCustomSpell(70691, SPELLVALUE_BASE_POINT0, damage, pVictim, true);
return true;
}
}
// Eclipse
if (dummySpell->SpellIconID == 2856 && GetTypeId() == TYPEID_PLAYER)