Fix for taunt.

Added additional check to prevent recourse spells from recoursing themselves and crashing.
This commit is contained in:
KayenEQ
2015-02-18 02:46:13 -05:00
parent db3feafe48
commit b6dd604de2
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3742,7 +3742,7 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob* spelltar, bool reflect, bool use_r
return false;
}
if (IsValidSpell(spells[spell_id].RecourseLink))
if (IsValidSpell(spells[spell_id].RecourseLink) && spells[spell_id].RecourseLink != spell_id)
SpellFinished(spells[spell_id].RecourseLink, this, 10, 0, -1, spells[spells[spell_id].RecourseLink].ResistDiff);
if (IsDetrimentalSpell(spell_id)) {