[Bug Fix] Fix Targeted AOE Max Targets Rule (#4488)

This commit is contained in:
Alex King
2024-10-02 21:25:35 -04:00
committed by GitHub
parent 7e51e629f9
commit 3359839a9b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1096,7 +1096,7 @@ void EntityList::AESpell(
max_targets = nullptr;
}
int max_targets_allowed = RuleI(Range, AOEMaxTargets); // unlimited
int max_targets_allowed = 4;
if (max_targets) { // rains pass this in since they need to preserve the count through waves
max_targets_allowed = *max_targets;
} else if (spells[spell_id].aoe_max_targets) {
@@ -1108,7 +1108,7 @@ void EntityList::AESpell(
!IsEffectInSpell(spell_id, SE_Lull) &&
!IsEffectInSpell(spell_id, SE_Mez)
) {
max_targets_allowed = 4;
max_targets_allowed = RuleI(Spells, TargetedAOEMaxTargets);
}
int target_hit_counter = 0;