diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-18 19:30:22 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-18 19:30:22 +0000 |
commit | c84d6f0062cefc26af7a4d55336bc06c68a15ac3 (patch) | |
tree | e7294df5fa57a22e78a2905025100ab438627d78 /src/map/status.c | |
parent | 80342514a6d3370029d6017428afdacce220fc17 (diff) | |
download | hercules-c84d6f0062cefc26af7a4d55336bc06c68a15ac3.tar.gz hercules-c84d6f0062cefc26af7a4d55336bc06c68a15ac3.tar.bz2 hercules-c84d6f0062cefc26af7a4d55336bc06c68a15ac3.tar.xz hercules-c84d6f0062cefc26af7a4d55336bc06c68a15ac3.zip |
- Modified the Storm Gust freeze counter code. It now takes into consideration the ID of the skill before increasing the counter, which should effectively yield the closest aproximation to official (even though the counter will reset if you step out of a SG and into another one, we do not know yet what should happen in such a case).
- Added @homshuffle. It recalculates the homunculus stats, as if the homunc was sent back to level 1, and then releveled. This command is mean to help fix those previously created Homunculus that are much stronger than they should be.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9671 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/map/status.c b/src/map/status.c index 4194b0c6b..fccf33847 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5957,13 +5957,7 @@ int status_change_clear(struct block_list *bl,int type) sc = status_get_sc(bl); - if (!sc) - return 0; - - if (sc->data[SC_FREEZE].val3) - sc->data[SC_FREEZE].val3 = 0; //Reset freeze counter. - - if (!sc->count) + if (!sc || !sc->count) return 0; if(sc->data[SC_DANCING].timer != -1) |