From d74fadc75140a178671740bcbd3941153439c490 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 17 Dec 2003 09:21:48 +0000 Subject: [PATCH] =?UTF-8?q?Astralbug=20"Ruf=20der=20Realit=C3=A4t"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/spell.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/spell.c b/src/common/kernel/spell.c index 12579f625..57a408462 100644 --- a/src/common/kernel/spell.c +++ b/src/common/kernel/spell.c @@ -6151,8 +6151,15 @@ sp_fetchastral(castorder *co) u = pa->param[n]->data.u; - if(!ucontact(u, mage)) { - if(power > 12 && !pa->param[n]->flag == TARGET_RESISTS && can_survive(u, rt)) { + if (ro != u->region) { + sprintf(buf, "%s ist zu weit von %s entfernt.", + unitname(u), unitname(mage)); + addmessage(r, mage->faction, buf, MSG_EVENT, ML_MISTAKE); + continue; + } + + if (!ucontact(u, mage)) { + if (power > 12 && !pa->param[n]->flag == TARGET_RESISTS && can_survive(u, rt)) { sprintf(buf, "%s hat uns nicht kontaktiert, widersteht dem " "Zauber jedoch nicht.", unitname(u)); addmessage(r, mage->faction, buf, MSG_MAGIC, ML_INFO);