summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-12 13:57:30 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-12 13:57:30 -0300
commit2d5d1836008140dcf8f780f89e69e471a240a787 (patch)
treeec9cc0261361685974daca1586c72143752478f9
parent8f583d6c4448db957c61a41ac9c3ad36b57afdff (diff)
downloadserverdata-2d5d1836008140dcf8f780f89e69e471a240a787.tar.gz
serverdata-2d5d1836008140dcf8f780f89e69e471a240a787.tar.bz2
serverdata-2d5d1836008140dcf8f780f89e69e471a240a787.tar.xz
serverdata-2d5d1836008140dcf8f780f89e69e471a240a787.zip
Fix one of the bugs, at least
-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);