diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-02 23:24:11 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-02 23:24:11 +0000 |
commit | 86ab87ef53da557383743c4ac74d8a5e30a5c8c6 (patch) | |
tree | 25f0eb03bd6d5630a76a49ae9f0c656c0e7da4a0 /src/map/unit.c | |
parent | 30953733770f10449ce32662369546e5ebd34449 (diff) | |
download | hercules-86ab87ef53da557383743c4ac74d8a5e30a5c8c6.tar.gz hercules-86ab87ef53da557383743c4ac74d8a5e30a5c8c6.tar.bz2 hercules-86ab87ef53da557383743c4ac74d8a5e30a5c8c6.tar.xz hercules-86ab87ef53da557383743c4ac74d8a5e30a5c8c6.zip |
- SC_REGENERATION's val4 now holds the RGN flag of what is blocked rather than blocking all types of regen.
- LK_BERSERK will now only block natural regen on state-end.
- SC_EXTREMITYFIST/SC_DANCING/SC_EXPLOSIONSPIRITS will only block natural sp regen and not skill regen
- SC_REGENERATION blocking will be cancelled on logout now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8600 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index b81e5f066..c36c14971 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1655,6 +1655,8 @@ int unit_free(struct block_list *bl, int clrtype) { status_change_end(bl,SC_EXTREMITYFIST,-1); if(sd->sc.data[SC_EXPLOSIONSPIRITS].timer!=-1) status_change_end(bl,SC_EXPLOSIONSPIRITS,-1); + if(sd->sc.data[SC_REGENERATION].timer!=-1 && sd->sc.data[SC_REGENERATION].val4) + status_change_end(bl,SC_REGENERATION,-1); } if (battle_config.debuff_on_logout&2) { //Food items are removed on logout. |