diff options
-rw-r--r-- | src/map/status.c | 2 | ||||
-rw-r--r-- | src/map/unit.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c index 8b10b2711..5c4f4cdd7 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -964,7 +964,6 @@ void initChangeTables(void) { StatusChangeStateTable[SC_MAGNETICFIELD] |= SCS_NOMOVE; StatusChangeStateTable[SC__MANHOLE] |= SCS_NOMOVE; StatusChangeStateTable[SC_VACUUM_EXTREME] |= SCS_NOMOVE; - StatusChangeStateTable[SC_FEAR] |= SCS_NOMOVE|SCS_NOMOVECOND; StatusChangeStateTable[SC_CURSEDCIRCLE_ATKER] |= SCS_NOMOVE; StatusChangeStateTable[SC_CURSEDCIRCLE_TARGET] |= SCS_NOMOVE; @@ -3423,7 +3422,6 @@ void status_calc_state( struct block_list *bl, struct status_change *sc, enum sc || (sc->data[SC_GRAVITATION] && sc->data[SC_GRAVITATION]->val3 == BCT_SELF) || (sc->data[SC_CLOAKING] && //Need wall at level 1-2 sc->data[SC_CLOAKING]->val1 < 3 && !(sc->data[SC_CLOAKING]->val4&1)) - || (sc->data[SC_FEAR] && sc->data[SC_FEAR]->val2 > 0) ) { sc->cant.move += ( start ? 1 : -1 ); } diff --git a/src/map/unit.c b/src/map/unit.c index 1f8cbf4e1..af4f95350 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -886,7 +886,7 @@ int unit_can_move(struct block_list *bl) return 0; //Can't move if (sc) { - if( sc->cant.move ) + if( sc->cant.move || (sc->data[SC_FEAR] && sc->data[SC_FEAR]->val2 > 0) ) return 0; if (sc->opt1 > 0 && sc->opt1 != OPT1_STONEWAIT && sc->opt1 != OPT1_BURNING) |