summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 06:46:34 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 06:46:34 +0000
commit48f2ec3f27a57a7fe3c60f5475174c075eec890d (patch)
tree2e9186172b7e3ff294ab0790bf8a6f0778988111 /src/map/mob.c
parent3c5e8580b0297a53d2b77eb8cc0a71e32d3206d3 (diff)
downloadhercules-48f2ec3f27a57a7fe3c60f5475174c075eec890d.tar.gz
hercules-48f2ec3f27a57a7fe3c60f5475174c075eec890d.tar.bz2
hercules-48f2ec3f27a57a7fe3c60f5475174c075eec890d.tar.xz
hercules-48f2ec3f27a57a7fe3c60f5475174c075eec890d.zip
* Added some code for Moonlit Petals and Basilica
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@788 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index e8cef9730..40bf4d1b0 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -500,7 +500,11 @@ static int mob_walk(struct mob_data *md,unsigned int tick,int data)
mob_walktoxy_sub(md);
return 0;
}
-
+ if (skill_check_basilica (&md->bl,x+dx,y+dy) ||
+ skill_check_moonlit (&md->bl,x+dx,y+dy)) {
+ mob_walktoxy_sub(md);
+ return 0;
+ }
moveblock = ( x/BLOCK_SIZE != (x+dx)/BLOCK_SIZE || y/BLOCK_SIZE != (y+dy)/BLOCK_SIZE);
md->state.state=MS_WALK;