- 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:
parent
b09f2775a2
commit
64972e4b5a
@ -5516,9 +5516,16 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
|
|||||||
|
|
||||||
case NPC_DRAGONFEAR:
|
case NPC_DRAGONFEAR:
|
||||||
if (flag&1) {
|
if (flag&1) {
|
||||||
const enum sc_type sc[] = { SC_STUN, SC_CURSE, SC_SILENCE, SC_BLEEDING };
|
const enum sc_type sc[] = { SC_STUN, SC_SILENCE, SC_CONFUSION, SC_BLEEDING };
|
||||||
i = rand()%ARRAYLENGTH(sc);
|
int j;
|
||||||
sc_start(bl,sc[i],100,skilllv,skill_get_time2(skillid,i+1));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case NPC_WIDEBLEEDING:
|
case NPC_WIDEBLEEDING:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user