From 65200eba503fee3f8c492f241ed673c3b97b7ad7 Mon Sep 17 00:00:00 2001 From: Aleos Date: Mon, 3 Apr 2023 18:47:53 -0400 Subject: [PATCH] Fixes an issue with clones receiving 1 damage (#7670) * Fixes #7579. * Adds an extra conditional check for reducing Green Aura type mobs to ignore cloned monsters. Thanks to @vietlubu and @Lemongrass3110! --- src/map/mob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/mob.cpp b/src/map/mob.cpp index a4e73ea5df..5fa35da1b2 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -4047,7 +4047,7 @@ int mob_clone_spawn(map_session_data *sd, int16 m, int16 x, int16 y, const char status->lhw.atk2= status->dex + status->lhw.atk + status->lhw.atk2; //Max ATK status->lhw.atk = status->dex; //Min ATK } - if (mode) //User provided mode. + if (mode > MD_NONE) //User provided mode. status->mode = mode; else if (flag&1) //Friendly Character, remove looting. status->mode = static_cast(status->mode&(~MD_LOOTER)); @@ -4205,6 +4205,7 @@ int mob_clone_spawn(map_session_data *sd, int16 m, int16 x, int16 y, const char if (!md) return 0; //Failed? md->special_state.clone = 1; + md->damagetaken = 100; // Avoid Green Aura reduction calculation. if (master_id || flag || duration) { //Further manipulate crafted char. if (flag&1) //Friendly Character