This commit is contained in:
aozhiwei 2022-10-08 20:24:48 +08:00
parent b339893d9f
commit 2fbed545af

View File

@ -1390,7 +1390,11 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
#ifdef DEBUG
a8::XPrintf("old_pos:%f,%f", {GetPos().x, GetPos().y});
#endif
#if 1
_UpdateMove(CurrentSkill()->meta->number_meta->int_range);
#else
_UpdateMove(phase->param1.GetInt());
#endif
a8::Vec2 pre_dir = old_dir;
a8::Vec2 pre_pos = old_pos;
#ifdef DEBUG
@ -1399,7 +1403,11 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
CurrentSkill()->AddMinorMode
(
SMT_BLINK,
#if 1
CurrentSkill()->meta->number_meta->float_time * 1000,
#else
phase->param2.GetInt() * 1000,
#endif
[this, pre_pos, pre_dir, buff_id] () {
a8::Vec2 old_dir = GetMoveDir();
a8::Vec2 old_pos = GetPos();