summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-22 03:11:04 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-22 03:11:04 +0000
commitba64401d27d855d33280015e3bea523aeda0af37 (patch)
tree1d0b4692072393149aa5afb38985c2b87f63379e /src/map/script.c
parent44f70b76b2048b175e7454014c65a4f455850267 (diff)
downloadhercules-ba64401d27d855d33280015e3bea523aeda0af37.tar.gz
hercules-ba64401d27d855d33280015e3bea523aeda0af37.tar.bz2
hercules-ba64401d27d855d33280015e3bea523aeda0af37.tar.xz
hercules-ba64401d27d855d33280015e3bea523aeda0af37.zip
- Corrected crash if itemskill is used without an attached player.
- Removed range checks for autospells as per UltraMage Aegis tests. - Added chatID skill fail check to skill_check_condition - Corrected @refresh not re-displaying your spirit spheres nor re-setting your cloth dye. - Now the "number of attackers" in mob_dead is counted only from online characters on the same map. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10307 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 47203beb5..0de86906c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7110,8 +7110,7 @@ BUILDIN_FUNC(itemskill)
id=script_getnum(st,2);
lv=script_getnum(st,3);
- // 詠唱中にスキルアイテムは使用できない
- if(sd->ud.skilltimer != -1)
+ if(!sd || sd->ud.skilltimer != -1)
return 0;
sd->skillitem=id;