aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-11-29 14:13:30 +0100
committerShauren <shauren.trinity@gmail.com>2015-11-29 14:13:30 +0100
commit3ab108c8ea02740aeaa473f985f55096850bdd8b (patch)
tree362ecd7f1353b548c43f7d43a827db6199c9afd5
parentc1b4cd21f3debc2eb5e462c5adce659b558c7dc9 (diff)
Core/Spells: Fixed passibe talent auras targeting pets instead of player
Closes #1543 Closes #15918
-rw-r--r--src/server/game/Spells/SpellMgr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 019b9e6f4d5..ec616c1d4c6 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -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