summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-05-03 20:41:37 +0200
committerGitHub <noreply@github.com>2020-05-03 20:41:37 +0200
commit754ab3c4f1031ebe924477d20b51ed5b0e814fd4 (patch)
tree5d0ccbcda0dded754f3090225e2d55a7d2e17f3e /src/map/mob.c
parentf40cc839413cc82aed445d39cc3aa204dce87780 (diff)
parentc4c55ca75a2f9f8390090e063f67b32c727416ed (diff)
downloadhercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.tar.gz
hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.tar.bz2
hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.tar.xz
hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.zip
Merge pull request #2686 from Kenpachi2k13/unknown_sc_fix
Fix status changes falsely being recognized as unknown
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 51a32abd9..262d5e26d 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -446,6 +446,9 @@ static bool mob_ksprotected(struct block_list *src, struct block_list *target)
if( !battle_config.ksprotection )
return false; // KS Protection Disabled
+ if (status->isdead(target) != 0)
+ return false; // Target is dead.
+
if( !(md = BL_CAST(BL_MOB,target)) )
return false; // Target is not MOB