summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 20:34:37 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 20:34:37 +0000
commit53d34018d92d1ec1c1dd1fc79b59f151ea571eb3 (patch)
treea2024546f505ef5c56a468ef424d6504cae8588f /src/map/battle.c
parent80f9698540a1e79b386b5c6863d0a412067c7086 (diff)
downloadhercules-53d34018d92d1ec1c1dd1fc79b59f151ea571eb3.tar.gz
hercules-53d34018d92d1ec1c1dd1fc79b59f151ea571eb3.tar.bz2
hercules-53d34018d92d1ec1c1dd1fc79b59f151ea571eb3.tar.xz
hercules-53d34018d92d1ec1c1dd1fc79b59f151ea571eb3.zip
- battle_check_target will now tag homunculus as invalid target when the source is a skill-type object.
- Added a check on pc_equipitem so that when the client specifies to equip a weapon on the right hand when the left hand is available, the weapon will be sent to the left hand instead (when dual-wielding is possible, obviously). Same for the left/right accessories. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7816 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index ad59a9685..257fceb16 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3082,7 +3082,11 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
return 0; //Pets cannot be targetted.
}
case BL_HOMUNCULUS:
- { //Just fallback on master.
+ {
+ //For some mysterious reason ground-skills can't target homun.
+ if (src->type == BL_SKILL)
+ return 0;
+ //Just fallback on master.
t_bl=(struct block_list *)((TBL_HOMUNCULUS*)target)->master;
break;
}