AE rampage shouldn't hit target

This commit is contained in:
Michael Cook (mackal) 2018-08-16 13:01:19 -04:00
parent 585ef81fde
commit 30148c3c56

View File

@ -580,7 +580,7 @@ int HateList::AreaRampage(Mob *caster, Mob *target, int count, ExtraAttackOption
// This is a temp solution until the hate lists can be rewritten to not have that issue
std::vector<uint16> id_list;
for (auto &h : list) {
if (h->entity_on_hatelist && h->entity_on_hatelist != caster &&
if (h->entity_on_hatelist && h->entity_on_hatelist != caster && h->entity_on_hatelist != target &&
caster->CombatRange(h->entity_on_hatelist))
id_list.push_back(h->entity_on_hatelist->GetID());
if (count != -1 && id_list.size() > count)