1
This commit is contained in:
parent
0a84c71c24
commit
99feed7041
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user