This commit is contained in:
aozhiwei 2024-09-13 14:57:50 +08:00
commit 9229f01d24

View File

@ -68,30 +68,26 @@ void HideBuff::Deactivate()
if (meta->_int_buff_param6 > 0) {
owner->GetAbility()->DecSwitch(kHideBuffAimingShow);
}
#if 0
if (!owner->room->IsDestorying() && !owner->room->IsGameOver()) {
owner->room->xtimer.SetTimeoutWpEx
(
SERVER_FRAME_RATE,
[owner],
[owner = owner]
(int event, const a8::Args* args) mutable
{
if (a8::TIMER_EXEC_EVENT == event) {
if (!owner->nature_recover_hp_idle_timer.expired()) {
owner->room->xtimer.FireEvent
(
owner->nature_recover_hp_idle_timer,
kRemoveNatureRecoverTimerEvent,
nullptr);
}
}
},
&owner->xtimer_attacher
);
}
#if 1
if (!owner->nature_recover_hp_idle_timer.expired()) {
owner->room->xtimer.FireEvent
(
owner->nature_recover_hp_idle_timer,
kRemoveNatureRecoverTimerEvent,
nullptr);
}
#endif
#endif
}
void HideBuff::AddInRangeObject(Creature* target)