mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Default area rampage to unlimited targets
This commit is contained in:
parent
4c9a3b7c29
commit
0513f1ad5d
@ -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)) {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user