viewing paste mob_cast | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Index: src/map/skill.c
===================================================================
--- src/map/skill.c (revision 17273)
+++ src/map/skill.c (working copy)
@@ -14026,9 +14049,10 @@
    if( time < 0 )
        return 0;
 
-   if(bl->type == BL_MOB)
-       fixed = 0; //mob as no fixed time
-   else if( fixed == 0 ){
+   if( bl->type == BL_MOB )
+       return (int)time;
+
+   if( fixed == 0 ){
        fixed = (int)time * 20 / 100; // fixed time
        time = time * 80 / 100; // variable time
    }else if( fixed < 0 ) // no fixed cast time
Viewed 533 times, submitted by Guest.