cleanup ST_Self logic in CastChecks

This commit is contained in:
nytmyr
2024-12-06 11:38:37 -06:00
parent 625c1fb06b
commit 912b6f0a28
+4 -4
View File
@@ -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;
}
}