This commit is contained in:
aozhiwei 2023-03-17 23:19:57 +08:00
parent 15103821df
commit 42c4c04478

View File

@ -125,11 +125,11 @@ void SprintBuff::Check(Position& pre_pos, Position& src_pos, std::map<int, long
[this] (int event, const a8::Args* args) [this] (int event, const a8::Args* args)
{ {
if (a8::TIMER_EXEC_EVENT == event) { if (a8::TIMER_EXEC_EVENT == event) {
#ifdef DEBUG #ifdef DEBUG1
a8::XPrintf("11111111111111111111111111\n", {}); a8::XPrintf("11111111111111111111111111\n", {});
#endif #endif
owner->RemoveBuffByUniId(buff_uniid);
owner->TryAddBuff(owner, meta->_int_buff_param1, skill_meta); owner->TryAddBuff(owner, meta->_int_buff_param1, skill_meta);
owner->RemoveBuffByUniId(buff_uniid);
} }
}, },
&xtimer_attacher); &xtimer_attacher);