Browse Source

- 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://svn.code.sf.net/p/rathena/svn/trunk@8983 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 years ago
parent
commit
92ec28e39c
1 changed files with 5 additions and 7 deletions
  1. 5 7
      src/map/status.c

+ 5 - 7
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: