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

This commit is contained in:
Alex King authored and GitHub committed 2024-10-02 20:25:35 -05:00
1 parent 7e51e629f9
commit 3359839a9b
2 files changed
+3 -3

No files matched your search

+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;