Skip to content

Conversation

@guilherme-gm
Copy link
Member

@guilherme-gm guilherme-gm commented Oct 5, 2019

Pull Request Prelude

Changes Proposed

This Pull Request fixes the effect timer of status changes when user relogs. Currently we send the client the remaining time as both the total time and the remaining time, thus making the timer go back to "full". The changes in this PR adds a new column to sc_data with the total time so we can restore the timer as it was before logging out.

I chose to make those "wrapper" functions around status_change_start and clif_status_change because they already have lots of parameters and are used in many places, simply adding another parameter would require me to update lots of places with repeated information.

Issues addressed:
Fixes #2018

@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

@guilherme-gm guilherme-gm changed the title Fixes status changes effect timer when relogging WIP: Fixes status changes effect timer when relogging Oct 6, 2019
@guilherme-gm guilherme-gm changed the title WIP: Fixes status changes effect timer when relogging Fixes status changes effect timer when relogging Oct 6, 2019
- This allows clients to continue the "timer" display after you login
again
@MishimaHaruna MishimaHaruna added this to the Release v2019.10.20 milestone Oct 18, 2019
@MishimaHaruna MishimaHaruna merged commit 9fb6983 into HerculesWS:master Oct 18, 2019
@guilherme-gm guilherme-gm deleted the 201910-fix-sc-times branch February 24, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants