summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/unit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 06a0a07bf..2858a9b6d 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -220,7 +220,13 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr data)
if(i > 0)
ud->walktimer = add_timer(tick+i,unit_walktoxy_timer,id,i);
- else if(ud->state.running) {
+
+ if (map_getcell(bl->m,x,y,CELL_CHKBASILICA)) {
+ skill_blown(bl,bl,2,unit_getdir(bl),0);
+ clif_fixpos(bl);
+ }
+
+ if(ud->state.running) {
//Keep trying to run.
if (!unit_run(bl))
ud->state.running = 0;