diff options
author | QAston <none@none> | 2009-07-22 19:31:16 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-22 19:31:16 +0200 |
commit | 0db6cb16d894b606493d88d412aa1bf9a54c6073 (patch) | |
tree | b789557107a40a584ee4b1d2f8c8a4368364c499 | |
parent | f9975c95360869f4a284b97b80220f360b3a6dd5 (diff) |
*Fix Replenishment from Imp. Soul Leech - original patch by freeganja.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index adb323be2b6..0a8e7dae7fc 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5577,6 +5577,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger { if ((*i)->GetId()==54117 || (*i)->GetId()==54118) { + if ((*i)->GetEffIndex() != 0) + continue; basepoints0 = int32((*i)->GetAmount()); if (target = GetGuardianPet()) { @@ -5585,6 +5587,15 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger } // regen mana for caster CastCustomSpell(this,59117,&basepoints0,NULL,NULL,true,castItem,triggeredByAura); + // Get second aura of spell for replenishment effect on party + if (AuraEffect const * aurEff = (*i)->GetParentAura()->GetPartAura(1)) + { + // Replenishment - roll chance + if (roll_chance_i(aurEff->GetAmount())) + { + CastSpell(this,57669,true, castItem, triggeredByAura); + } + } break; } } |