Fix ^cast summoncorpse

This commit is contained in:
nytmyr
2025-01-27 23:33:16 -06:00
parent 69d5d1a883
commit b5a200554b
2 changed files with 17 additions and 20 deletions
+8 -10
View File
@@ -779,12 +779,7 @@ bool Mob::DoCastingChecksOnTarget(bool check_on_casting, int32 spell_id, Mob *sp
if (IsGroupSpell(spell_id)) {
return true;
} else if (spells[spell_id].target_type == ST_Self) {
if (IsBot() && (IsEffectInSpell(spell_id, SE_SummonCorpse) && RuleB(Bots, AllowCommandedSummonCorpse))) {
//spell_target = this;
}
else {
spell_target = this;
}
spell_target = this;
}
} else {
if (IsGroupSpell(spell_id) && spell_target != this) {
@@ -1925,10 +1920,13 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
// single target spells
case ST_Self:
{
if (IsBot() && (IsEffectInSpell(spell_id, SE_SummonCorpse) && RuleB(Bots, AllowCommandedSummonCorpse))) {
//spell_target = this;
}
else {
if (
!(
IsBot() &&
IsEffectInSpell(spell_id, SE_SummonCorpse) &&
RuleB(Bots, AllowCommandedSummonCorpse)
)
) { // summon corpse spells are self only, bots need a fallthrough to summon corpses
spell_target = this;
}