mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Spells: Fixed passibe talent auras targeting pets instead of player
Closes #1543 Closes #15918
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user