This commit is contained in:
aozhiwei 2023-03-15 14:44:01 +08:00
parent 0a84c71c24
commit 99feed7041

View File

@ -24,10 +24,15 @@ void HideBuff::Activate()
(int event, const a8::Args* args) mutable
{
if (a8::TIMER_EXEC_EVENT == event) {
Human* hum = nullptr;
if (Collision::CheckCC(owner, owner->GetRadius(),
hum, alert_range)) {
}
owner->TraverseCreatures
(
[this, alert_range] (Creature* target, bool& stop)
{
if (!target->dead && target->team_id != owner->team_id &&
Collision::CheckCC(owner, owner->GetRadius(),
target, alert_range)) {
}
});
}
},
&xtimer_attacher