summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-14 15:35:25 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-14 15:35:25 +0000
commit987aa586c48f83830f8c457d5cfe49361acb028a (patch)
treedfaffb829dadf841dcb21443915c49f208e14d95 /src/map/unit.c
parent50df12f5c8f485b12944182a53c43df975edd4cb (diff)
downloadhercules-987aa586c48f83830f8c457d5cfe49361acb028a.tar.gz
hercules-987aa586c48f83830f8c457d5cfe49361acb028a.tar.bz2
hercules-987aa586c48f83830f8c457d5cfe49361acb028a.tar.xz
hercules-987aa586c48f83830f8c457d5cfe49361acb028a.zip
- blocked again skill usage during marionette.
- Some minor code cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7162 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index e1b42c101..5ec465d43 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -529,10 +529,6 @@ int unit_warp(struct block_list *bl,int m,short x,short y,int type)
map_addblock(bl);
clif_spawn(bl);
-//This is broken because the mob already was changed from map.
-//Fortunately, the slave ai will make them chase their master automatically
-// if (bl->type == BL_MOB)
-// mob_warpslave(bl,AREA_SIZE);
skill_unit_move(bl,gettick(),1);
return 0;
}
@@ -838,7 +834,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
switch(skill_num){
case ALL_RESURRECTION:
if(battle_check_undead(tstatus->race,tstatus->def_ele)){
- temp=1;
+ temp=1;
casttime = skill_castfix(src, PR_TURNUNDEAD, skill_lv);
}
break;
@@ -1281,7 +1277,6 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int t
if(sd && sd->status.pet_id > 0 && sd->pd && battle_config.pet_attack_support)
pet_target_check(sd,target,0);
-
map_freeblock_unlock();
ud->attackabletime = tick + sstatus->adelay;