summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/annuals/xmas/2021.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index 4a542b3f..059179fe 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -423,7 +423,10 @@ public function spawn {
// "#XMAS21Core"::spawn2(MonsterID, X1, Y1, X2, Y2, {Amount=1, {Map=this}})
// Function Changes from On<ID> to OnX<ID>
public function spawn2 {
- .@m$=getarg(6, getmap());
+ if (playerattached())
+ .@m$=getarg(6, getmap());
+ else
+ .@m$=getarg(6);
.@n$="#XMAS21Core::OnX"+getarg(0);
.@x1=max(getarg(1), 20);
.@y1=max(getarg(2), 20);