From 5cc9f30cbe8c57a97e58a5a3b5387622e4304873 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 17 Feb 2012 15:33:13 +0000 Subject: Initial support for Shadow Chaser and a few adjustments here and there. - credits to 3ceam for the base - should you step by any bugs let us know, http://rathena.org/board/tracker git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15589 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 511a33fe6..e541cd549 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -930,6 +930,12 @@ int unit_can_move(struct block_list *bl) sc->data[SC_CLOAKING]->val1 < 3 && !(sc->data[SC_CLOAKING]->val4&1)) || sc->data[SC_MADNESSCANCEL] || (sc->data[SC_GRAVITATION] && sc->data[SC_GRAVITATION]->val3 == BCT_SELF) + || sc->data[SC_WHITEIMPRISON] + || sc->data[SC_ELECTRICSHOCKER] + || sc->data[SC_BITE] + || sc->data[SC_MAGNETICFIELD] + || sc->data[SC__MANHOLE] + || (sc->data[SC_FEAR] && sc->data[SC_FEAR]->val2 > 0) )) return 0; } @@ -1990,6 +1996,9 @@ int unit_remove_map_(struct block_list *bl, clr_type clrtype, const char* file, status_change_end(bl, SC_CHANGE, INVALID_TIMER); status_change_end(bl, SC_STOP, INVALID_TIMER); status_change_end(bl, SC_WUGDASH, INVALID_TIMER); + status_change_end(bl, SC__SHADOWFORM, INVALID_TIMER); + status_change_end(bl, SC__MANHOLE, INVALID_TIMER); + } if (bl->type&(BL_CHAR|BL_PET)) { -- cgit v1.2.3-60-g2f50