From 5ca815925a5fa5246dfc6beeb7d80b95d90fcd4b Mon Sep 17 00:00:00 2001 From: Katja Zedel Date: Sun, 28 Apr 2002 15:53:49 +0000 Subject: [PATCH] =?UTF-8?q?fix.=20vertrauten=20k=C3=B6nnen=20gegenst=C3=A4?= =?UTF-8?q?nde=20zaubern,=20doch=20diese=20landen=20beim=20magier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/spell.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/common/kernel/spell.c b/src/common/kernel/spell.c index e1c475de7..18632d124 100644 --- a/src/common/kernel/spell.c +++ b/src/common/kernel/spell.c @@ -7181,6 +7181,11 @@ sp_createitem_trueseeing(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_AMULET_OF_TRUE_SEEING,1); creation_message(mage, I_AMULET_OF_TRUE_SEEING); @@ -7195,6 +7200,11 @@ sp_createitem_invisibility(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_RING_OF_INVISIBILITY,1); creation_message(mage, I_RING_OF_INVISIBILITY); @@ -7208,6 +7218,11 @@ sp_createitem_chastitybelt(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_CHASTITY_BELT,1); creation_message(mage, I_CHASTITY_BELT); @@ -7222,6 +7237,11 @@ sp_createitem_power(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_RING_OF_POWER,1); creation_message(mage, I_RING_OF_POWER); @@ -7235,6 +7255,11 @@ sp_createitem_runesword(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_RUNESWORD,1); creation_message(mage, I_RUNESWORD); @@ -7250,6 +7275,11 @@ sp_createitem_aura(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_AURAKULUM,1); creation_message(mage, I_AURAKULUM); @@ -7267,6 +7297,11 @@ sp_createitem_regeneration(castorder *co) { unit *mage = (unit *)co->magician; int cast_level = co->level; + unit *familiar = (unit *)co->familiar; + + if (familiar){ + mage = familiar; + } change_item(mage,I_RING_OF_REGENERATION,1); creation_message(mage, I_RING_OF_REGENERATION);