diff options
author | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-07 19:11:54 +0000 |
---|---|---|
committer | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-07 19:11:54 +0000 |
commit | 193477a496b615adb2894f90c608ff064a805439 (patch) | |
tree | 078431dd81d0a4bb19f26f55998d5d9e63893b39 /src/map/unit.c | |
parent | b6db5047e42c24093ed908385d80fe759140e250 (diff) | |
download | hercules-193477a496b615adb2894f90c608ff064a805439.tar.gz hercules-193477a496b615adb2894f90c608ff064a805439.tar.bz2 hercules-193477a496b615adb2894f90c608ff064a805439.tar.xz hercules-193477a496b615adb2894f90c608ff064a805439.zip |
Follow up to r16479 fixed a bug where SC_CLOAKING would freeze the character on equipment switch (example: using Frilldora card on a Garment and unequipping).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16596 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 339f0a988..089a5520e 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -925,6 +925,8 @@ int unit_can_move(struct block_list *bl) (sc->data[SC_DANCING]->val1&0xFFFF) == CG_MOONLIT || (sc->data[SC_DANCING]->val1&0xFFFF) == CG_HERMODE ) ) + || (sc->data[SC_CLOAKING] && //Need wall at level 1-2 + sc->data[SC_CLOAKING]->val1 < 3 && !(sc->data[SC_CLOAKING]->val4&1)) ) return 0; |