summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-03-19 10:23:52 -0300
committershennetsind <ind@henn.et>2015-03-19 10:23:52 -0300
commit145a4fe644c4fe856ba6f83086e8ee5075caad99 (patch)
tree5108ca4dc3c2c8888ee99b8eb6f41c2ea5c18e62 /src/map
parentf323823dced65fcc1e781695c375d373233e510e (diff)
downloadhercules-145a4fe644c4fe856ba6f83086e8ee5075caad99.tar.gz
hercules-145a4fe644c4fe856ba6f83086e8ee5075caad99.tar.bz2
hercules-145a4fe644c4fe856ba6f83086e8ee5075caad99.tar.xz
hercules-145a4fe644c4fe856ba6f83086e8ee5075caad99.zip
Fixed Bug 8582
Solves an issue where an skill unit left-area event would not triggered due to duels. Special Thanks to Haruna, kyeme. http://hercules.ws/board/tracker/issue-8582-infinite-songs/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 4ce4b7d1c..70b9550d0 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6514,8 +6514,6 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
) {
if( t_bl->type == BL_PC && (sd->duel_group == ((TBL_PC*)t_bl)->duel_group) )
return (BCT_ENEMY&flag)?1:-1; // Duel targets can ONLY be your enemy, nothing else.
- else
- return 0; // You can't target anything out of your duel
}
}
if( map_flag_gvg(m) && !sd->status.guild_id && t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->class_ == MOBID_EMPERIUM )