This commit is contained in:
aozhiwei 2022-08-16 16:31:36 +08:00
parent bf82e1d761
commit a454a55e29

View File

@ -1104,7 +1104,7 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
a8::Vec2 old_pos = GetPos(); a8::Vec2 old_pos = GetPos();
if (CurrentSkill()->GetMinorType() == SMT_NONE) { if (CurrentSkill()->GetMinorType() == SMT_NONE) {
int buff_id = phase->param3.GetInt(); int buff_id = phase->param3.GetInt();
//TryAddBuff(this, buff_id); TryAddBuff(this, buff_id);
a8::XPrintf("old_pos:%f,%f", {GetPos().x, GetPos().y}); a8::XPrintf("old_pos:%f,%f", {GetPos().x, GetPos().y});
_UpdateMove(phase->param1.GetInt()); _UpdateMove(phase->param1.GetInt());
a8::Vec2 pre_dir = old_dir; a8::Vec2 pre_dir = old_dir;
@ -1122,7 +1122,7 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
a8::Vec2 new_dir = pre_pos - GetPos(); a8::Vec2 new_dir = pre_pos - GetPos();
new_dir.Normalize(); new_dir.Normalize();
SetMoveDir(new_dir); SetMoveDir(new_dir);
//TryAddBuff(this, buff_id); TryAddBuff(this, buff_id);
_UpdateMove(distance); _UpdateMove(distance);
} }
SetMoveDir(old_dir); SetMoveDir(old_dir);
@ -3224,4 +3224,3 @@ void Creature::_UpdateSpecMove()
} }
} }
} }