~ruther/NosSmooth

b8e3a22862fbfa2b5b937de5d290a03aecfce426 — Rutherther 2 years ago 16cca6f
feat(game): cancel the skill contract in case no response is obtained
1 files changed, 1 insertions(+), 0 deletions(-)

M Core/NosSmooth.Game/Apis/Unsafe/UnsafeSkillsApi.cs
M Core/NosSmooth.Game/Apis/Unsafe/UnsafeSkillsApi.cs => Core/NosSmooth.Game/Apis/Unsafe/UnsafeSkillsApi.cs +1 -0
@@ 421,6 421,7 @@ public class UnsafeSkillsApi
                skillUseEvent => skillUseEvent
            )
            .SetError<CancelPacket>(UseSkillStates.SkillUseRequested, _ => UseSkillErrors.Unknown)
            .SetTimeout(UseSkillStates.SkillUseRequested, TimeSpan.FromSeconds(1.5), UseSkillErrors.NoResponse)
            .SetTimeout(UseSkillStates.SkillUsedResponse, TimeSpan.FromSeconds(1), UseSkillStates.CharacterRestored)
            .Build();
    }

Do not follow this link