- Updated NPC_DRAGONFEAR to supposedly behave as it should

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13797 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2009-05-19 19:14:12 +00:00
parent b09f2775a2
commit 64972e4b5a

View File

@ -5516,9 +5516,16 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
case NPC_DRAGONFEAR:
if (flag&1) {
const enum sc_type sc[] = { SC_STUN, SC_CURSE, SC_SILENCE, SC_BLEEDING };
i = rand()%ARRAYLENGTH(sc);
sc_start(bl,sc[i],100,skilllv,skill_get_time2(skillid,i+1));
const enum sc_type sc[] = { SC_STUN, SC_SILENCE, SC_CONFUSION, SC_BLEEDING };
int j;
j = i = rand()%ARRAYLENGTH(sc);
while ( !sc_start(bl,sc[i],100,skilllv,skill_get_time2(skillid,i+1)) ) {
i++;
if ( i == ARRAYLENGTH(sc) )
i = 0;
if (i == j)
break;
}
break;
}
case NPC_WIDEBLEEDING: