diff options
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 9b0dbfc03..511cf9416 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3401,6 +3401,16 @@ struct status_change *status_get_sc(struct block_list *bl) return NULL;
}
+void status_change_init(struct block_list *bl)
+{
+ struct status_change *sc = status_get_sc(bl);
+ int i;
+ nullpo_retv(sc);
+ memset(sc, 0, sizeof (struct status_change));
+ for (i=0; i< SC_MAX; i++)
+ sc->data[i].timer = -1;
+}
+
//Returns defense against the specified status change.
//Return range is 0 (no resist) to 10000 (inmunity)
int status_get_sc_def(struct block_list *bl, int type)
|