From 2a0f10a6f77e1df9490f0181fb84f91e7591c412 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 20 Jul 2006 20:34:06 +0000 Subject: - Corrected Cloaking level 1-2 not letting you move across walls. - updated cloaking code so that when you set "enable cloaking without walls", the code will consider you as "always next to a wall", thus you get the wall-speed bonus always. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7778 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 9ada29c7a..e14f3d388 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -668,7 +668,8 @@ int unit_can_move(struct block_list *bl) sc->data[SC_STOP].timer != -1 || sc->data[SC_CLOSECONFINE].timer != -1 || sc->data[SC_CLOSECONFINE2].timer != -1 || - (sc->data[SC_CLOAKING].timer != -1 && sc->data[SC_CLOAKING].val1 < 3) + (sc->data[SC_CLOAKING].timer != -1 && //Need wall at level 1-2 + sc->data[SC_CLOAKING].val1 < 3 && !(sc->data[SC_CLOAKING].val4&1)) )) return 0; } @@ -933,7 +934,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int ud->skilllv = skill_lv; if(sc && sc->data[SC_CLOAKING].timer != -1 && - !(sc->data[SC_CLOAKING].val4&1) && skill_num != AS_CLOAKING) + !(sc->data[SC_CLOAKING].val4&2) && skill_num != AS_CLOAKING) status_change_end(src,SC_CLOAKING,-1); if(casttime > 0) { @@ -1026,7 +1027,7 @@ int unit_skilluse_pos2( struct block_list *src, int skill_x, int skill_y, int sk ud->skilltarget = 0; if (sc && sc->data[SC_CLOAKING].timer != -1 && - !(sc->data[SC_CLOAKING].val4&1)) + !(sc->data[SC_CLOAKING].val4&2)) status_change_end(src,SC_CLOAKING,-1); if(casttime > 0) { -- cgit v1.2.3-70-g09d2