This commit is contained in:
aozhiwei 2023-03-08 18:00:19 +08:00
parent 432118f50e
commit 6c61266f4f

View File

@ -89,9 +89,7 @@ void SprintBuff::CoCollisionCheck()
(int event, const a8::Args* args) mutable
{
if (a8::TIMER_EXEC_EVENT == event) {
if (!meta->_buff_param3_int_list.empty()) {
Check(pre_pos, src_pos, hited_objects);
}
Check(pre_pos, src_pos, hited_objects);
}
},
&xtimer_attacher);
@ -127,6 +125,9 @@ void SprintBuff::Check(Position& pre_pos, Position& src_pos, std::map<int, long
[this] (int event, const a8::Args* args)
{
if (a8::TIMER_EXEC_EVENT == event) {
#ifdef DEBUG
a8::XPrintf("11111111111111111111111111\n", {});
#endif
owner->RemoveBuffByUniId(buff_uniid);
owner->TryAddBuff(owner, meta->_int_buff_param1, skill_meta);
}