diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 320fef26e..81bc6ffdc 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -6876,11 +6876,15 @@ void Aura::PeriodicTick() SpellPeriodicAuraLogInfo pInfo(this, drain_amount, 0, 0, 0, gain_multiplier); target->SendPeriodicAuraLog(&pInfo); - int32 gain_amount = int32(drain_amount * gain_multiplier); - - if(gain_amount) + if (int32 gain_amount = int32(drain_amount * gain_multiplier)) { int32 gain = pCaster->ModifyPower(power, gain_amount); + + if (GetId() == 5138) // Drain Mana + if (Aura* petPart = GetHolder()->GetAuraByEffectIndex(EFFECT_INDEX_1)) + if (int pet_gain = gain_amount * petPart->GetModifier()->m_amount / 100) + pCaster->CastCustomSpell(pCaster, 32554, &pet_gain, NULL, NULL, true); + target->AddThreat(pCaster, float(gain) * 0.5f, pInfo.critical, GetSpellSchoolMask(spellProto), spellProto); } break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 454908ea3..b151c7977 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10705" + #define REVISION_NR "10706" #endif // __REVISION_NR_H__