mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Bug Fix] Fix Targeted AOE Max Targets Rule (#4488)
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user