1
This commit is contained in:
commit
9229f01d24
@ -68,30 +68,26 @@ 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) {
|
||||||
|
if (!owner->nature_recover_hp_idle_timer.expired()) {
|
||||||
|
owner->room->xtimer.FireEvent
|
||||||
|
(
|
||||||
|
owner->nature_recover_hp_idle_timer,
|
||||||
|
kRemoveNatureRecoverTimerEvent,
|
||||||
|
nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&owner->xtimer_attacher
|
&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)
|
void HideBuff::AddInRangeObject(Creature* target)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user