diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-13 20:16:23 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-13 20:16:23 +0000 |
commit | c6e6b993b667a3d62163194f33ef030047c2e08f (patch) | |
tree | 4112ccb2869eadae9a621f85d688926bebff3784 /src/map/status.c | |
parent | e4b9fddf841e615bb86e5f9ce10c29b2d171efc3 (diff) | |
download | hercules-c6e6b993b667a3d62163194f33ef030047c2e08f.tar.gz hercules-c6e6b993b667a3d62163194f33ef030047c2e08f.tar.bz2 hercules-c6e6b993b667a3d62163194f33ef030047c2e08f.tar.xz hercules-c6e6b993b667a3d62163194f33ef030047c2e08f.zip |
- 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
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 12 |
1 files changed, 5 insertions, 7 deletions
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:
|