From e47d2cf99b24b3519780b4b4bdd9e98c3c5f9462 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 19 May 2009 19:14:12 +0000 Subject: - Updated NPC_DRAGONFEAR to supposedly behave as it should git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13797 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index f9d982922..8c755434e 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -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: -- cgit v1.2.3-70-g09d2