aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
}