diff options
author | lordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-15 10:30:42 +0000 |
---|---|---|
committer | lordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-15 10:30:42 +0000 |
commit | daeecf3bd0bdb54f43f8aedee98a7c8c68a56992 (patch) | |
tree | 4d57bf55bb3f936bf97ac92402627e90ed1bdd40 /src/map/pc.c | |
parent | 55984b91c03d25e7a6cae535043cd49815cf9e24 (diff) | |
download | hercules-daeecf3bd0bdb54f43f8aedee98a7c8c68a56992.tar.gz hercules-daeecf3bd0bdb54f43f8aedee98a7c8c68a56992.tar.bz2 hercules-daeecf3bd0bdb54f43f8aedee98a7c8c68a56992.tar.xz hercules-daeecf3bd0bdb54f43f8aedee98a7c8c68a56992.zip |
Status change packet cleanup
* fixed a couple typos
* replaced duplicate function clif_status_load with a macro
* normalized and documented status change table related getter abstraction
* put some checks that were previously in multiple places into clif_status_change
* packets are now used as they are on official servers:
- ZC_MSG_STATE_CHANGE for ending statuses and starting them on non-pcs
- ZC_MSG_STATE_CHANGE2 for starting *all* statuses on players
- tick = 9999 for statuses of indeterminate duration
- for non-pc units, a packet is only sent if it has a visual impact on the client; if you notice any missing visual effects, please report them!
* fixed hidden GM characters leaking certain status packets
* fixed hidden GM characters not displaying timers for newly gained statuses
* fixed status end packet never being sent for non-pc, non-mercenary units
* fixed SC_CLOAKING displaying a time bar on the client
* fixed tick being an unsigned int, yet used as a signed int
* removed hard-coded status length exceptions in clif_status_change
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15688 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index db4bca617..915537bc2 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -282,7 +282,7 @@ int pc_banding(struct map_session_data *sd, short skill_lv) { if( (sc = status_get_sc(&sd->bl)) != NULL && sc->data[SC_BANDING] ) { sc->data[SC_BANDING]->val2 = 0; // Reset the counter - status_calc_bl(&sd->bl,StatusChangeFlagTable[SC_BANDING]); + status_calc_bl(&sd->bl, status_sc2scb_flag(SC_BANDING)); } return 0; } @@ -325,7 +325,7 @@ int pc_banding(struct map_session_data *sd, short skill_lv) { if( (sc = status_get_sc(&bsd->bl)) != NULL && sc->data[SC_BANDING] ) { sc->data[SC_BANDING]->val2 = c; // Set the counter. It doesn't count your self. - status_calc_bl(&bsd->bl,StatusChangeFlagTable[SC_BANDING]); // Set atk and def. + status_calc_bl(&bsd->bl, status_sc2scb_flag(SC_BANDING)); // Set atk and def. } } } |