This commit is contained in:
aozhiwei 2023-01-02 13:52:55 +08:00
parent fc2b19827b
commit ccd5f340e0

View File

@ -1066,9 +1066,13 @@ void Skill::ProcShotPhase(const mt::SkillPhase* phase)
void Skill::ProcForthBackJumpPhase(const mt::SkillPhase* phase) void Skill::ProcForthBackJumpPhase(const mt::SkillPhase* phase)
{ {
if (GetMinorType() != SMT_NONE) {
return;
}
glm::vec3 old_dir = owner->GetMoveDir(); glm::vec3 old_dir = owner->GetMoveDir();
Position old_pos = owner->GetPos(); Position old_pos = owner->GetPos();
if (GetMinorType() == SMT_NONE) {
int buff_id1 = phase->param3_ints.size() > 0 ? phase->param3_ints[0] : 0; int buff_id1 = phase->param3_ints.size() > 0 ? phase->param3_ints[0] : 0;
int buff_id2 = phase->param3_ints.size() > 1 ? phase->param3_ints[1] : 0; int buff_id2 = phase->param3_ints.size() > 1 ? phase->param3_ints[1] : 0;
int buff_id3 = phase->param3_ints.size() > 2 ? phase->param3_ints[2] : 0; int buff_id3 = phase->param3_ints.size() > 2 ? phase->param3_ints[2] : 0;
@ -1117,6 +1121,5 @@ void Skill::ProcForthBackJumpPhase(const mt::SkillPhase* phase)
skill_meta); skill_meta);
} }
); );
}
owner->SetMoveDir(old_dir); owner->SetMoveDir(old_dir);
} }