From c6e6b993b667a3d62163194f33ef030047c2e08f Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 13 Oct 2006 20:16:23 +0000 Subject: - Sight Blaster will not end after hitting 1 enemy if there's several enemies within range, it will first knock them all back, and then end (as reported by AuronX) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8983 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/map/status.c b/src/map/status.c index c97021637..2f8517427 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6786,13 +6786,11 @@ int status_change_timer_sub(struct block_list *bl, va_list ap ) } break; case SC_SIGHTBLASTER: - { - if (sc && sc->count && sc->data[type].val2 > 0 && battle_check_target( src, bl, BCT_ENEMY ) > 0 && - status_check_skilluse(src, bl, WZ_SIGHTBLASTER, 2)) - { //sc_ check prevents a single round of Sight Blaster hitting multiple opponents. [Skotlex] - skill_attack(BF_MAGIC,src,src,bl,WZ_SIGHTBLASTER,1,tick,0); - sc->data[type].val2 = 0; //This signals it to end. - } + if (battle_check_target( src, bl, BCT_ENEMY ) > 0 && + status_check_skilluse(src, bl, WZ_SIGHTBLASTER, 2)) + { + skill_attack(BF_MAGIC,src,src,bl,WZ_SIGHTBLASTER,1,tick,0); + if (sc) sc->data[type].val2 = 0; //This signals it to end. } break; case SC_CLOSECONFINE: -- cgit v1.2.3-70-g09d2