summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-28 19:07:38 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-28 19:07:38 +0000
commit0b0a39e39623321141c51115214a1b5233fd7b1d (patch)
treee7492cbf23cbf32b0c4fbefda84a71814441a9c7 /src/map/battle.c
parentde9ba8dc89aaa1ba7d0d7bab06001e3e284a2d4d (diff)
downloadhercules-0b0a39e39623321141c51115214a1b5233fd7b1d.tar.gz
hercules-0b0a39e39623321141c51115214a1b5233fd7b1d.tar.bz2
hercules-0b0a39e39623321141c51115214a1b5233fd7b1d.tar.xz
hercules-0b0a39e39623321141c51115214a1b5233fd7b1d.zip
- Moved the blocking of casting supportive skills on homunculus from battle_check_target to status_check_skilluse as bct is not invoked unless the skill is offensive (or party/guild only)
- Cleaned up status_calc_bl_sub_hom, fixed recasting dex/str/vit/int bonuses skills making their atk/def/mdef stack with itself over and over. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9350 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index c168f8bdb..efe9e161e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3226,10 +3226,8 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
return 0;
}
break;
+ //Valid targets with nothing else specified.
case BL_HOM:
- //Except for the master/itself, hom can't be targetted with non-offensive skills. [Skotlex]
- if (t_bl != s_bl && !(flag&BCT_ENEMY))
- return 0;
break;
//All else not specified is an invalid target.
default: