From 9d3b2f3da991c69e4e050652945d742120a4ce7a Mon Sep 17 00:00:00 2001 From: CTD Date: Tue, 11 Nov 2014 10:17:55 +0100 Subject: [PATCH] Flieger und Bewache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flieger können nur noch durch andere Flieger aufgehalten werden. Damit können Drachen auch in Bewachten Regionen plündern. --- src/move.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/move.c b/src/move.c index 4a9bd7ba7..d8c0f5cd2 100644 --- a/src/move.c +++ b/src/move.c @@ -913,6 +913,8 @@ static unit *bewegung_blockiert_von(unit * reisender, region * r) int sk = eff_skill(u, SK_PERCEPTION, r); if (invisible(reisender, u) >= reisender->number) continue; + if (!u_race(u)->flags & RCF_FLY && u_race(reisender)->flags & RCF_FLY) + continue; if ((u->faction == reisender->faction) || (ucontact(u, reisender)) || (alliedunit(u, reisender->faction, HELP_GUARD))) guard_count = guard_count - u->number; else if (sk >= stealth) { @@ -962,6 +964,8 @@ static bool is_guardian_u(const unit * guard, unit * u, unsigned int mask) return false; if (!cansee(guard->faction, u->region, u, 0)) return false; + if (!u_race(guard)->flags & RCF_FLY && u_race(u)->flags & RCF_FLY) + return false; return true; }