diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-20 20:34:06 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-20 20:34:06 +0000 |
commit | 2a0f10a6f77e1df9490f0181fb84f91e7591c412 (patch) | |
tree | c5d4088747df422a843d001525bbaee9fbbad459 /src/map/skill.c | |
parent | b1cb80992092152a1fe459f4a3ac24c5c41940bc (diff) | |
download | hercules-2a0f10a6f77e1df9490f0181fb84f91e7591c412.tar.gz hercules-2a0f10a6f77e1df9490f0181fb84f91e7591c412.tar.bz2 hercules-2a0f10a6f77e1df9490f0181fb84f91e7591c412.tar.xz hercules-2a0f10a6f77e1df9490f0181fb84f91e7591c412.zip |
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index e8a80fd0f..47500b7e8 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9490,16 +9490,16 @@ int skill_check_cloaking(struct block_list *bl, struct status_change *sc) if (sc->data[SC_CLOAKING].timer != -1) { if (sc->data[SC_CLOAKING].val1 < 3) //End cloaking. status_change_end(bl, SC_CLOAKING, -1); - else if(sc->data[SC_CLOAKING].val4&2) + else if(sc->data[SC_CLOAKING].val4&1) { //Remove wall bonus - sc->data[SC_CLOAKING].val4&=~2; + sc->data[SC_CLOAKING].val4&=~1; status_calc_bl(bl,SCB_SPEED); } } } - else if(sc->data[SC_CLOAKING].timer != -1 && !(sc->data[SC_CLOAKING].val4&2)) + else if(sc->data[SC_CLOAKING].timer != -1 && !(sc->data[SC_CLOAKING].val4&1)) { //Add wall speed bonus - sc->data[SC_CLOAKING].val4|=2; + sc->data[SC_CLOAKING].val4|=1; status_calc_bl(bl,SCB_SPEED); } |