Browse Source

Fixed basilica behavior not knocking back monsters 2 cells should one attempt to enter the field.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12852 54d463be-8e91-2dee-dedb-b68131a5f0ec
sketchyphoenix 17 năm trước cách đây
mục cha
commit
935ec01db7
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/map/unit.c

+ 7 - 1
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;