summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 04:26:57 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 04:26:57 +0000
commitf1ab59626ff04306a8009c98566631d81d95c33b (patch)
treeef4a1f99a175325129350a64b7e29af02fdfeaf6 /src/map/map.c
parentcc772f0b2d7475a148ecfb0ef539edadac2c2279 (diff)
downloadhercules-f1ab59626ff04306a8009c98566631d81d95c33b.tar.gz
hercules-f1ab59626ff04306a8009c98566631d81d95c33b.tar.bz2
hercules-f1ab59626ff04306a8009c98566631d81d95c33b.tar.xz
hercules-f1ab59626ff04306a8009c98566631d81d95c33b.zip
Fixed Mechanic Stealth Field to move accordingly and grant proper effect
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15754 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index efd3c16e0..d07db5eb5 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -425,8 +425,11 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick)
skill_unit_move_unit_group(skill_id2group(sc->data[SC_WARM]->val4), bl->m, x1-x0, y1-y0);
if (sc->data[SC_BANDING])
skill_unit_move_unit_group(skill_id2group(sc->data[SC_BANDING]->val4), bl->m, x1-x0, y1-y0);
+
if (sc->data[SC_NEUTRALBARRIER_MASTER])
skill_unit_move_unit_group(skill_id2group(sc->data[SC_NEUTRALBARRIER_MASTER]->val2), bl->m, x1-x0, y1-y0);
+ else if (sc->data[SC_STEALTHFIELD_MASTER])
+ skill_unit_move_unit_group(skill_id2group(sc->data[SC_STEALTHFIELD_MASTER]->val2), bl->m, x1-x0, y1-y0);
}
/* Guild Aura Moving */
if( bl->type == BL_PC && ((TBL_PC*)bl)->state.gmaster_flag ) {