From 68c3337b48956e286ce8539e164c46eb91e96687 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 16 Mar 2009 13:56:19 -0600 Subject: Only resume script after divorce if need to --- src/map/chrif.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/chrif.c') diff --git a/src/map/chrif.c b/src/map/chrif.c index ef681b7..40972f4 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -692,7 +692,11 @@ int chrif_divorce(int char_id, int partner_id) sd = map_nick2sd(map_charid2nick(char_id)); if (sd && sd->status.partner_id == partner_id) { sd->status.partner_id = 0; - map_scriptcont(sd, sd->npc_id); + + if (sd->npc_flags.divorce) { + sd->npc_flags.divorce = 0; + map_scriptcont(sd, sd->npc_id); + } } nullpo_retr(0, sd = map_nick2sd(map_charid2nick(partner_id))); -- cgit v1.2.3-60-g2f50