Default area rampage to unlimited targets

This commit is contained in:
Michael Cook (mackal) 2015-07-30 21:26:51 -04:00
parent 4c9a3b7c29
commit 0513f1ad5d
2 changed files with 2 additions and 2 deletions

View File

@ -537,7 +537,7 @@ int HateList::AreaRampage(Mob *caster, Mob *target, int count, ExtraAttackOption
int hit_count = 0; int hit_count = 0;
auto it = list.begin(); 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); struct_HateList *h = (*it);
if (h && h->entity_on_hatelist && h->entity_on_hatelist != caster) { if (h && h->entity_on_hatelist && h->entity_on_hatelist != caster) {
if (caster->CombatRange(h->entity_on_hatelist)) { if (caster->CombatRange(h->entity_on_hatelist)) {

View File

@ -2000,7 +2000,7 @@ void Mob::AreaRampage(ExtraAttackOptions *opts)
} }
int rampage_targets = GetSpecialAbilityParam(SPECATK_AREA_RAMPAGE, 1); 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); index_hit = hate_list.AreaRampage(this, GetTarget(), rampage_targets, opts);
if(index_hit == 0) if(index_hit == 0)