summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorsketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-21 22:01:37 +0000
committersketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-21 22:01:37 +0000
commita496d2693dd3727a8e3991b05fe57601e44b48b1 (patch)
treea885c57ebe6d7b6ae58657ce45a76f85070e1878 /src/map/unit.c
parent8e67f78bec84c8d3d6c9331ec9409d7ed1e94233 (diff)
downloadhercules-a496d2693dd3727a8e3991b05fe57601e44b48b1.tar.gz
hercules-a496d2693dd3727a8e3991b05fe57601e44b48b1.tar.bz2
hercules-a496d2693dd3727a8e3991b05fe57601e44b48b1.tar.xz
hercules-a496d2693dd3727a8e3991b05fe57601e44b48b1.zip
Fixed a not-so-well implemented basilica fix that was reverted in 12869.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12872 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 06a0a07bf..715bb11e4 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -218,13 +218,19 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr data)
else
i = status_get_speed(bl);
+ if (map_getcell(bl->m,x,y,CELL_CHKBASILICA)) {
+ skill_blown(bl,bl,2,unit_getdir(bl),0);
+ clif_fixpos(bl);
+ }
+
if(i > 0)
ud->walktimer = add_timer(tick+i,unit_walktoxy_timer,id,i);
else if(ud->state.running) {
//Keep trying to run.
if (!unit_run(bl))
ud->state.running = 0;
- } else if (ud->target) {
+ }
+ else if (ud->target) {
//Update target trajectory.
struct block_list *tbl = map_id2bl(ud->target);
if (!tbl || !status_check_visibility(bl, tbl)) { //Cancel chase.
@@ -246,7 +252,8 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr data)
unit_walktobl(bl, tbl, ud->chaserange, ud->state.walk_easy|(ud->state.attack_continue?2:0));
return 0;
}
- } else { //Stopped walking. Update to_x and to_y to current location [Skotlex]
+ }
+ else { //Stopped walking. Update to_x and to_y to current location [Skotlex]
ud->to_x = bl->x;
ud->to_y = bl->y;
if(md && md->nd) // Tell the script engine we've finished walking (for AI pathfinding)