aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-22 19:31:16 +0200
committerQAston <none@none>2009-07-22 19:31:16 +0200
commit0db6cb16d894b606493d88d412aa1bf9a54c6073 (patch)
treeb789557107a40a584ee4b1d2f8c8a4368364c499 /src/game/Unit.cpp
parentf9975c95360869f4a284b97b80220f360b3a6dd5 (diff)
*Fix Replenishment from Imp. Soul Leech - original patch by freeganja.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp11
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;
}
}