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

View File

@ -68,21 +68,14 @@ void HideBuff::Deactivate()
if (meta->_int_buff_param6 > 0) { if (meta->_int_buff_param6 > 0) {
owner->GetAbility()->DecSwitch(kHideBuffAimingShow); owner->GetAbility()->DecSwitch(kHideBuffAimingShow);
} }
#if 0
if (!owner->room->IsDestorying() && !owner->room->IsGameOver()) { if (!owner->room->IsDestorying() && !owner->room->IsGameOver()) {
owner->room->xtimer.SetTimeoutWpEx owner->room->xtimer.SetTimeoutWpEx
( (
SERVER_FRAME_RATE, SERVER_FRAME_RATE,
[owner], [owner = owner]
(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) {
}
},
&owner->xtimer_attacher
);
}
#if 1
if (!owner->nature_recover_hp_idle_timer.expired()) { if (!owner->nature_recover_hp_idle_timer.expired()) {
owner->room->xtimer.FireEvent owner->room->xtimer.FireEvent
( (
@ -90,8 +83,11 @@ void HideBuff::Deactivate()
kRemoveNatureRecoverTimerEvent, kRemoveNatureRecoverTimerEvent,
nullptr); nullptr);
} }
#endif }
#endif },
&owner->xtimer_attacher
);
}
} }
void HideBuff::AddInRangeObject(Creature* target) void HideBuff::AddInRangeObject(Creature* target)