From 0837fe4176c86becf8032b3315bb6c55c597c24b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 10 Oct 2010 21:42:27 -0700 Subject: [PATCH] http://bugs.eressea.de/view.php?id=1809 Monsters attacking units that they cannot see? Bad! --- src/monsters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monsters.c b/src/monsters.c index c80915ee7..c956350e8 100644 --- a/src/monsters.c +++ b/src/monsters.c @@ -543,7 +543,7 @@ monster_attacks(unit * u) unit * u2; for (u2=r->units;u2;u2=u2->next) { - if (u2->faction!=u->faction && chance(0.75)) { + if (cansee(u->faction, r, u2, 0) && u2->faction!=u->faction && chance(0.75)) { order * ord = monster_attack(u, u2); if (ord) addlist(&u->orders, ord); }