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 (int event, const a8::Args* args) mutable
{ {
if (a8::TIMER_EXEC_EVENT == event) { if (a8::TIMER_EXEC_EVENT == event) {
Human* hum = nullptr; owner->TraverseCreatures
if (Collision::CheckCC(owner, owner->GetRadius(), (
hum, alert_range)) { [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 &xtimer_attacher