This commit is contained in:
azw 2023-11-07 02:18:28 +00:00
parent 022bdfe5b0
commit 6a46d2ce0d

View File

@ -1025,6 +1025,7 @@ void CallFuncBuff::RangeHoldBuff()
()
{
float range = meta->GetBuffParam2(this);
std::vector<Human*> hit_humans;
owner->room->TraverseAliveHumanList
(
[this, range] (Human* hum)
@ -1034,6 +1035,22 @@ void CallFuncBuff::RangeHoldBuff()
}
return true;
});
std::vector<Human*> leave_humans;
for (auto& pair : context->in_human_infos) {
bool found = false;
#if 0
for (int i = 0; i < size; ++i){
if (hit_humans[i] == pair.second.c.Get()) {
found = true;
break;
}
}
#endif
if (!found) {
on_leave(pair.second.c.Get()->AsHuman());
leave_humans.push_back(pair.second.c.Get()->AsHuman());
}
}
};
owner->room->xtimer.SetIntervalWpEx
(