[Combat] AE Ramp now allows Max Melee Range

RuleR AERampageSafeZone - Reduce AE Ramp range by this amount to allow for a small safe zone on AE Ramp.
This commit is contained in:
Trust
2020-08-09 14:04:03 -04:00
parent bda13383ef
commit 3245fa6123
4 changed files with 32 additions and 10 deletions
+4 -3
View File
@@ -675,10 +675,12 @@ int HateList::AreaRampage(Mob *caster, Mob *target, int count, ExtraAttackOption
std::vector<uint16> id_list;
for (auto &h : list) {
if (h->entity_on_hatelist && h->entity_on_hatelist != caster && h->entity_on_hatelist != target &&
caster->CombatRange(h->entity_on_hatelist))
caster->CombatRange(h->entity_on_hatelist, 1.0, true)) {
id_list.push_back(h->entity_on_hatelist->GetID());
if (count != -1 && id_list.size() > count)
}
if (count != -1 && id_list.size() > count) {
break;
}
}
for (auto &id : id_list) {
@@ -688,7 +690,6 @@ int HateList::AreaRampage(Mob *caster, Mob *target, int count, ExtraAttackOption
caster->ProcessAttackRounds(mob, opts);
}
}
return hit_count;
}