Skip to content

Commit

Permalink
Fixed Bug #6735
Browse files Browse the repository at this point in the history
Fixed a skill unit bug that'd run it on nearby targets disregarding friend-or-foe data.
Special Thanks to Haruna for reproducing and providing all the information.
http://hercules.ws/board/tracker/issue-6735-dancer-please-dont-forget-me/

Signed-off-by: shennetsind <ind@henn.et>
  • Loading branch information
shennetsind committed Sep 10, 2013
1 parent 58e2d27 commit e2330c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/skill.c
Expand Up @@ -12102,8 +12102,8 @@ int skill_unit_effect (struct block_list* bl, va_list ap) {
//Necessary in case the group is deleted after calling on_place/on_out [Skotlex]
skill_id = group->skill_id;
//Target-type check.
if( !(group->bl_flag&bl->type && battle->check_target(&unit->bl,bl,group->target_flag)>0) && (flag&4) ) {
if( group->state.song_dance&0x1 || (group->src_id == bl->id && group->state.song_dance&0x2) )
if( !(group->bl_flag&bl->type && battle->check_target(&unit->bl,bl,group->target_flag)>0) ) {
if( (flag&4) && ( group->state.song_dance&0x1 || (group->src_id == bl->id && group->state.song_dance&0x2) ) )
skill->unit_onleft(skill_id, bl, tick);//Ensemble check to terminate it.
} else {
if( flag&1 )
Expand Down

0 comments on commit e2330c6

Please sign in to comment.