summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 05:03:39 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 05:03:39 +0200
commit42a3bcaf96be26aeed560574d650e61091282995 (patch)
tree605207f1e151063605d8b7b0975fb69bafdc3e2c /src/map/pet.c
parent2129555fa2752cfa0b9e73151fad2897d426fe63 (diff)
downloadhercules-42a3bcaf96be26aeed560574d650e61091282995.tar.gz
hercules-42a3bcaf96be26aeed560574d650e61091282995.tar.bz2
hercules-42a3bcaf96be26aeed560574d650e61091282995.tar.xz
hercules-42a3bcaf96be26aeed560574d650e61091282995.zip
Add battle flag for immediately removing the pet when its intimacy drops to 0
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 3c75c23b5..fe803d93f 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -154,8 +154,10 @@ static void pet_set_intimate(struct pet_data *pd, int value)
if (i != sd->status.inventorySize)
pc->delitem(sd, i, 1, 0, DELITEM_NORMAL, LOG_TYPE_EGG);
- pet_stop_attack(pd);
- unit->remove_map(&pd->bl, CLR_OUTSIGHT, ALC_MARK);
+ if (battle_config.pet_remove_immediately != 0) {
+ pet_stop_attack(pd);
+ unit->remove_map(&pd->bl, CLR_OUTSIGHT, ALC_MARK);
+ }
}
status_calc_pc(sd, SCO_NONE);