summaryrefslogtreecommitdiff
path: root/src/map/magic-stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/magic-stmt.c')
-rw-r--r--src/map/magic-stmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c
index 0d4b4b7..a8d42f1 100644
--- a/src/map/magic-stmt.c
+++ b/src/map/magic-stmt.c
@@ -635,11 +635,11 @@ op_spawn(env_t *env, int args_nr, val_t *args)
break;
case MONSTER_ATTITUDE_FRIENDLY:
- mob->mode = 0x81;
+ mob->mode = 0x80 | (mob->mode & 1);
break;
case MONSTER_ATTITUDE_HOSTILE:
- mob->mode = 0x85;
+ mob->mode = 0x84 | (mob ->mode & 1);
if (owner) {
mob->target_id = owner->bl.id;
mob->attacked_id = owner->bl.id;