summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-01-25 02:11:40 +0100
committerHaru <haru@dotalux.com>2020-02-09 21:24:34 +0100
commitc4773a7018993e25603d925be3cf982dcc13bd79 (patch)
tree123f2a169118bcdc4f636733314098c574c53f85 /src/map
parent14d7ef4651d7a399bec5e60f7c5e7c3550164063 (diff)
downloadhercules-c4773a7018993e25603d925be3cf982dcc13bd79.tar.gz
hercules-c4773a7018993e25603d925be3cf982dcc13bd79.tar.bz2
hercules-c4773a7018993e25603d925be3cf982dcc13bd79.tar.xz
hercules-c4773a7018993e25603d925be3cf982dcc13bd79.zip
Added an initial dmg_taken_rate value to clone spawns.
Mobs, spawned by mob_clone_spawn() function were invulnerable, because their dmg_taken_rate was never set and thus became 0. Now, dmg_taken_rate will be set 100 to remove that invulnerability.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 6c1076114..3b39542da 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3742,6 +3742,7 @@ static int mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16
strcpy(db->name, sd->status.name);
strcpy(db->jname, sd->status.name);
db->lv = status->get_lv(&sd->bl);
+ db->dmg_taken_rate = 100;
memcpy(mstatus, &sd->base_status, sizeof(struct status_data));
mstatus->rhw.atk2 = mstatus->dex + mstatus->rhw.atk + mstatus->rhw.atk2; /// Max ATK.
mstatus->rhw.atk = mstatus->dex; /// Min ATK.