summaryrefslogtreecommitdiff
path: root/npc/magic/level2-happy-curse.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/level2-happy-curse.txt')
-rw-r--r--npc/magic/level2-happy-curse.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/magic/level2-happy-curse.txt b/npc/magic/level2-happy-curse.txt
index 08987293..1e1096a1 100644
--- a/npc/magic/level2-happy-curse.txt
+++ b/npc/magic/level2-happy-curse.txt
@@ -5,7 +5,9 @@
// School: General 2
function script SK_Joyplim {
- delitem GingerBreadMan, 1;
+ if (getarg(0, true))
+ delitem GingerBreadMan, 1;
+
.@b=(BL_PC | BL_PET | BL_MER | BL_HOM); // | BL_MOB
.@r=3+cap_value(getskilllv(SKILL_MAGIC)+(@skillLv/2), 1, 12); // Your radius
.@s=AdjustSpellpower(100); // Your magical stamina