This commit is contained in:
aozhiwei 2023-03-15 14:02:09 +08:00
parent c2829b5f89
commit f28e31e3d7

View File

@ -15,7 +15,17 @@ void HideBuff::Activate()
float alert_range = meta->GetBuffParam2(this); float alert_range = meta->GetBuffParam2(this);
float alert_time = meta->GetBuffParam3(this); float alert_time = meta->GetBuffParam3(this);
if (alert_range > 1.0f) { if (alert_range > 1.0f) {
owner->room->xtimer.SetIntervalWpEx
(
SERVER_FRAME_RATE,
[this, alert_range, alert_time]
(int event, const a8::Args* args) mutable
{
if (a8::TIMER_EXEC_EVENT == event) {
}
},
&xtimer_attacher
);
} }
} }