diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-07 10:07:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-07 10:07:37 -0300 |
commit | 8e105a540c3bba2d6cbe28948d2455946961a2c4 (patch) | |
tree | 9167543b04a36bed0211d99479ab6b5cc5ec9d46 | |
parent | 50ca5da91834dae1a8e12003cf84487508ec2ed6 (diff) | |
download | serverdata-8e105a540c3bba2d6cbe28948d2455946961a2c4.tar.gz serverdata-8e105a540c3bba2d6cbe28948d2455946961a2c4.tar.bz2 serverdata-8e105a540c3bba2d6cbe28948d2455946961a2c4.tar.xz serverdata-8e105a540c3bba2d6cbe28948d2455946961a2c4.zip |
The NPC rule on shovel no longer applies to Artis.
-rw-r--r-- | npc/items/shovel.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 5131d78f..8a7a3b58 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -10,10 +10,12 @@ function CheckDigLocation { getmapxy(.@map$, .@x, .@y, 0); - if (getunits(BL_NPC, .@units, 1, .@map$, .@x - 1, .@y, .@x + 1, .@y + 1)) - { - dispbottom(l("You cannot bury under a NPC!")); - return false; + if (getmap() != "001-1") { + if (getunits(BL_NPC, .@units, 1, .@map$, .@x - 1, .@y, .@x + 1, .@y + 1)) + { + dispbottom(l("You cannot bury under a NPC!")); + return false; + } } // TODO: we should have a way to check for GROUNDTOP collisions too |