From 0513f1ad5d6cff729f92ec6ad11ffe2a1df17daf Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 30 Jul 2015 21:26:51 -0400 Subject: [PATCH] Default area rampage to unlimited targets --- zone/hate_list.cpp | 2 +- zone/mob_ai.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 86a75a545..2268fd8f4 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -537,7 +537,7 @@ int HateList::AreaRampage(Mob *caster, Mob *target, int count, ExtraAttackOption int hit_count = 0; auto it = list.begin(); - while (it != list.end() && hit_count < count) { + while (it != list.end() && (hit_count == -1 || hit_count < count)) { struct_HateList *h = (*it); if (h && h->entity_on_hatelist && h->entity_on_hatelist != caster) { if (caster->CombatRange(h->entity_on_hatelist)) { diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index b9394f9a3..9a483fddd 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -2000,7 +2000,7 @@ void Mob::AreaRampage(ExtraAttackOptions *opts) } int rampage_targets = GetSpecialAbilityParam(SPECATK_AREA_RAMPAGE, 1); - rampage_targets = rampage_targets > 0 ? rampage_targets : 1; + rampage_targets = rampage_targets > 0 ? rampage_targets : -1; index_hit = hate_list.AreaRampage(this, GetTarget(), rampage_targets, opts); if(index_hit == 0)