Core/Spells: Fixed passibe talent auras targeting pets instead of player

Closes #1543
Closes #15918
This commit is contained in:
Shauren
2015-11-29 14:13:30 +01:00
parent c1b4cd21f3
commit 3ab108c8ea

View File

@@ -2923,6 +2923,11 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Speed = SPEED_CHARGE;
break;
}
// Passive talent auras cannot target pets
if (spellInfo->IsPassive() && GetTalentSpellCost(i))
if (spellInfo->Effects[j].TargetA.GetTarget() == TARGET_UNIT_PET)
spellInfo->Effects[j].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CASTER);
}
if (spellInfo->ActiveIconID == 2158) // flight