Fix wrong magnet aura takeCharges when spell hit not magnet unit
This will fix issue 3151 second problem Signed-off-by: dr.skull <[email protected]>
This commit is contained in:
@@ -14525,6 +14525,11 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
|
|||||||
if (procSpell && (triggeredByAura->GetMiscValue() & procSpell->SchoolMask)) // School check
|
if (procSpell && (triggeredByAura->GetMiscValue() & procSpell->SchoolMask)) // School check
|
||||||
takeCharges = true;
|
takeCharges = true;
|
||||||
break;
|
break;
|
||||||
|
case SPELL_AURA_SPELL_MAGNET:
|
||||||
|
// Skip Melee hits and targets with magnet aura
|
||||||
|
if (procSpell && (triggeredByAura->GetBase()->GetUnitOwner()->ToUnit() == ToUnit())) // Magnet
|
||||||
|
takeCharges = true;
|
||||||
|
break;
|
||||||
case SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT:
|
case SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT:
|
||||||
case SPELL_AURA_MOD_POWER_COST_SCHOOL:
|
case SPELL_AURA_MOD_POWER_COST_SCHOOL:
|
||||||
// Skip melee hits and spells ws wrong school or zero cost
|
// Skip melee hits and spells ws wrong school or zero cost
|
||||||
|
|||||||
Reference in New Issue
Block a user