summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/hub.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index fb91085d6..5db919aa1 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -831,8 +831,10 @@ function script HUB_SkillInvoke {
case TMW2_PARLORTRICK:
.@PW = 20*@skillLv;
// Rain bonus
- if (getmapmask(getmap()) & MASK_RAIN)
- .@PW += 30;
+ if (playerattached()) {
+ if (getmapmask(getmap()) & MASK_RAIN)
+ .@PW += 30;
+ }
.@dmg=AdjustSpellpower(.@PW);
harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Water, @skillCaster);
//No Mana EXP