From 4910a42db0ce4d0bc39c264a581ff1061908b8d4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 Feb 2004 21:04:33 +0000 Subject: [PATCH] =?UTF-8?q?anzeigen=20von=20vertratuten-spr=C3=BCchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/magic.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index c08e2475f..791473f3f 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -357,11 +357,12 @@ already_seen(const faction * f, spellid_t id) void updatespelllist(unit * u) { - int i, sk = eff_skill(u, SK_MAGIC, u->region); - magic_t gebiet; - int max = eff_skill(u, SK_MAGIC, u->region); + int max = eff_skill(u, SK_MAGIC, u->region); + int i, sk = max; + magic_t gebiet = find_magetype(u); - gebiet = find_magetype(u); + if (u->faction->no==MONSTER_FACTION) return; + /* Magier mit keinem bzw M_GRAU bekommen weder Sprüche angezeigt noch * neue Sprüche in ihre List-of-known-spells. Das sind zb alle alten