viewing paste ra_br7634 | Diff

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
Index: src/map/mob.c
===================================================================
--- src/map/mob.c   (revision 17319)
+++ src/map/mob.c   (working copy)
@@ -2629,15 +2629,6 @@
    if (battle_config.mvp_tomb_enabled && md->spawn->state.boss)
        mvptomb_create(md, mvp_sd ? mvp_sd->status.name : NULL, time(NULL));
 
-   // Remove all status changes before creating a respawn
-   if( sc ) {
-       for(i=0; i<SC_MAX; i++){
-           if(sc->data[i] && (sc->data[i]->timer != INVALID_TIMER))
-               delete_timer(sc->data[i]->timer, status_change_timer);
-       }
-       memset( sc, 0, sizeof( struct status_change ) );
-   }
-
    if( !rebirth )
        mob_setdelayspawn(md); //Set respawning.
    return 3; //Remove from map.
Index: src/map/status.c
===================================================================
--- src/map/status.c    (revision 17319)
+++ src/map/status.c    (working copy)
@@ -9250,6 +9251,14 @@
    sc->opt2 = 0;
    sc->opt3 = 0;
 
+   //cleaning all extras vars
+   sc->comet_x = 0;
+   sc->comet_y = 0;
+#ifndef RENEWAL
+   sc->sg_counter = 0;
+#endif
+   sc->bs_counter = 0;
+
    if( type == 0 || type == 2 )
        clif_changeoption(bl);
 
@@ -11000,6 +11009,15 @@
        }
        status_change_end(bl, (sc_type)i, INVALID_TIMER);
    }
+
+   //cleaning all extras vars
+   sc->comet_x = 0;
+   sc->comet_y = 0;
+#ifndef RENEWAL
+   sc->sg_counter = 0;
+#endif
+   sc->bs_counter = 0;
+
    return 0;
 }
Viewed 1030 times, submitted by lighta.