From f076819852059809b4281ef2e87e50aee102cfd0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 20 Aug 2006 21:38:02 +0000 Subject: - Gravitation now only blocks the caster from using potions. - Corrected Madness Canceller not letting you walk while the effect lasts. - Splitted yet again ASC_BREAKER into a two-part attack. This time the int-based damage is a MISC type attack, and gets reduced by skills as such. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8392 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index e04244469..5c48cf8e4 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -664,23 +664,24 @@ int unit_can_move(struct block_list *bl) return 0; if (sc->count && ( - sc->data[SC_ANKLE].timer != -1 || - sc->data[SC_AUTOCOUNTER].timer !=-1 || - sc->data[SC_TRICKDEAD].timer !=-1 || - sc->data[SC_BLADESTOP].timer !=-1 || - sc->data[SC_BLADESTOP_WAIT].timer !=-1 || - sc->data[SC_SPIDERWEB].timer !=-1 || - (sc->data[SC_DANCING].timer !=-1 && ( + sc->data[SC_ANKLE].timer != -1 + || sc->data[SC_AUTOCOUNTER].timer !=-1 + || sc->data[SC_TRICKDEAD].timer !=-1 + || sc->data[SC_BLADESTOP].timer !=-1 + || sc->data[SC_BLADESTOP_WAIT].timer !=-1 + || sc->data[SC_SPIDERWEB].timer !=-1 + || (sc->data[SC_DANCING].timer !=-1 && ( (sc->data[SC_DANCING].val4 && sc->data[SC_LONGING].timer == -1) || sc->data[SC_DANCING].val1 == CG_HERMODE //cannot move while Hermod is active. - )) || - sc->data[SC_MOONLIT].timer != -1 || - (sc->data[SC_GOSPEL].timer !=-1 && sc->data[SC_GOSPEL].val4 == BCT_SELF) || // cannot move while gospel is in effect - sc->data[SC_STOP].timer != -1 || - sc->data[SC_CLOSECONFINE].timer != -1 || - sc->data[SC_CLOSECONFINE2].timer != -1 || - (sc->data[SC_CLOAKING].timer != -1 && //Need wall at level 1-2 - sc->data[SC_CLOAKING].val1 < 3 && !(sc->data[SC_CLOAKING].val4&1)) + )) + || sc->data[SC_MOONLIT].timer != -1 + || (sc->data[SC_GOSPEL].timer !=-1 && sc->data[SC_GOSPEL].val4 == BCT_SELF) // cannot move while gospel is in effect + || sc->data[SC_STOP].timer != -1 + || sc->data[SC_CLOSECONFINE].timer != -1 + || sc->data[SC_CLOSECONFINE2].timer != -1 + || (sc->data[SC_CLOAKING].timer != -1 && //Need wall at level 1-2 + sc->data[SC_CLOAKING].val1 < 3 && !(sc->data[SC_CLOAKING].val4&1)) + || sc->data[SC_MADNESSCANCEL].timer != -1 )) return 0; } -- cgit v1.2.3-60-g2f50