From 67ff004d617037ee30160aa8a34e09b5c1f61489 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:38:37 -0600 Subject: [PATCH] cleanup ST_Self logic in CastChecks --- zone/bot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 6f3ab2e50..5b858ecda 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -9541,10 +9541,10 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spellType, bool doPrechec } if (spells[spell_id].target_type == ST_Self && tar != this) { - if (IsEffectInSpell(spell_id, SE_SummonCorpse) && RuleB(Bots, AllowCommandedSummonCorpse)) { - //tar = this; - } - else { + if ( + !IsEffectInSpell(spell_id, SE_SummonCorpse) || + (IsEffectInSpell(spell_id, SE_SummonCorpse) && !RuleB(Bots, AllowCommandedSummonCorpse)) + ) { tar = this; } }