Core/Spells: Fix a regression of 7f30ac5a95 - spells with TARGET_SELECT_CATEGORY_CHANNEL target type (like mind sear) should be triggered by triggering spell caster

This commit is contained in:
QAston
2011-08-26 12:39:50 +02:00
parent 5c48d9ec8a
commit 8e392440cf
6 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ public:
if (!target->HasAura(spellId))
{
SpellInfo const* triggeredSpellInfo = sSpellMgr->GetSpellInfo(spellId);
Unit* triggerCaster = triggeredSpellInfo->IsRequiringSelectedTarget() ? caster : target;
Unit* triggerCaster = triggeredSpellInfo->NeedsToBeTriggeredByCaster() ? caster : target;
triggerCaster->CastSpell(target, triggeredSpellInfo, true, 0, aurEff);
}
}