summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-20 20:15:37 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-20 20:15:37 +0000
commit924eceea21e4e355be7227a3ef4c366ddbcb9748 (patch)
treee6d20aee5065e7798a931fbde607071185cf2e37
parentc8c69e4d07918f4936ff380b06cecd988f7e5444 (diff)
downloadhercules-924eceea21e4e355be7227a3ef4c366ddbcb9748.tar.gz
hercules-924eceea21e4e355be7227a3ef4c366ddbcb9748.tar.bz2
hercules-924eceea21e4e355be7227a3ef4c366ddbcb9748.tar.xz
hercules-924eceea21e4e355be7227a3ef4c366ddbcb9748.zip
- Fixed "being able to cast" skills while dead.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5685 54d463be-8e91-2dee-dedb-b68131a5f0ec
-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;
}