From 912b6f0a2812cb6353f56105d5c1037674956134 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 8fdf57d50..6ec2bd6d2 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -9530,10 +9530,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; } }