summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index c8c022c55..28f81f347 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -356,13 +356,14 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
mode = src?status_get_mode(src):MD_CANATTACK;
+ if (src && status_isdead(src))
+ return 0;
+
if (!skill_num) { //Normal attack checks.
if (!(mode&MD_CANATTACK))
return 0; //This mode is only needed for melee attacking.
//Dead state is not checked for skills as some skills can be used
- //by/on dead characters, said checks are left to skill.c [Skotlex]
- if (src && status_isdead(src))
- return 0;
+ //on dead characters, said checks are left to skill.c [Skotlex]
if (target && status_isdead(target))
return 0;
}