summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-27 10:47:02 -0200
committershennetsind <ind@henn.et>2013-11-27 10:47:02 -0200
commit8ecffa8892e00fc1116e4e34fa448e46774194e5 (patch)
tree1d07fc89342b740735ae5bb83fdf6ab0e37fbcd4 /src/map/atcommand.c
parent85d99a3207a34eb5abdc3bafd44d9e7d10082bc6 (diff)
downloadhercules-8ecffa8892e00fc1116e4e34fa448e46774194e5.tar.gz
hercules-8ecffa8892e00fc1116e4e34fa448e46774194e5.tar.bz2
hercules-8ecffa8892e00fc1116e4e34fa448e46774194e5.tar.xz
hercules-8ecffa8892e00fc1116e4e34fa448e46774194e5.zip
Dropped emperium spawn restrictions
Thanks to kyeme for bringing it to our attention. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 5c31155b1..b45807cf8 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1927,12 +1927,7 @@ ACMD(monster)
clif->message(fd, msg_txt(40)); // Invalid monster ID or name.
return false;
}
-
- if (mob_id == MOBID_EMPERIUM) {
- clif->message(fd, msg_txt(83)); // Monster 'Emperium' cannot be spawned.
- return false;
- }
-
+
if (number <= 0)
number = 1;
@@ -1957,7 +1952,7 @@ ACMD(monster)
range = (int)sqrt((float)number) +2; // calculation of an odd number (+ 4 area around)
for (i = 0; i < number; i++) {
map->search_freecell(&sd->bl, 0, &mx, &my, range, range, 0);
- k = mob->once_spawn(sd, sd->bl.m, mx, my, name, mob_id, 1, eventname, size, AI_NONE);
+ k = mob->once_spawn(sd, sd->bl.m, mx, my, name, mob_id, 1, eventname, size, AI_NONE|(mob_id == MOBID_EMPERIUM?0x200:0x0));
count += (k != 0) ? 1 : 0;
}