summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-19 19:14:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-19 19:14:12 +0000
commite47d2cf99b24b3519780b4b4bdd9e98c3c5f9462 (patch)
treed0bf958c0ed35bd2bf626db928598d33c46de294 /src
parentfb59efa101fbc2d58b9b8048da70eb7026dd9c94 (diff)
downloadhercules-e47d2cf99b24b3519780b4b4bdd9e98c3c5f9462.tar.gz
hercules-e47d2cf99b24b3519780b4b4bdd9e98c3c5f9462.tar.bz2
hercules-e47d2cf99b24b3519780b4b4bdd9e98c3c5f9462.tar.xz
hercules-e47d2cf99b24b3519780b4b4bdd9e98c3c5f9462.zip
- 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
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c13
1 files changed, 10 insertions, 3 deletions
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: