fix. vertrauten können gegenstände zaubern, doch diese landen beim

magier
This commit is contained in:
Katja Zedel 2002-04-28 15:53:49 +00:00
parent 8a2e68e9b1
commit 5ca815925a
1 changed files with 35 additions and 0 deletions

View File

@ -7181,6 +7181,11 @@ sp_createitem_trueseeing(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_AMULET_OF_TRUE_SEEING,1); change_item(mage,I_AMULET_OF_TRUE_SEEING,1);
creation_message(mage, I_AMULET_OF_TRUE_SEEING); creation_message(mage, I_AMULET_OF_TRUE_SEEING);
@ -7195,6 +7200,11 @@ sp_createitem_invisibility(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_RING_OF_INVISIBILITY,1); change_item(mage,I_RING_OF_INVISIBILITY,1);
creation_message(mage, I_RING_OF_INVISIBILITY); creation_message(mage, I_RING_OF_INVISIBILITY);
@ -7208,6 +7218,11 @@ sp_createitem_chastitybelt(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_CHASTITY_BELT,1); change_item(mage,I_CHASTITY_BELT,1);
creation_message(mage, I_CHASTITY_BELT); creation_message(mage, I_CHASTITY_BELT);
@ -7222,6 +7237,11 @@ sp_createitem_power(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_RING_OF_POWER,1); change_item(mage,I_RING_OF_POWER,1);
creation_message(mage, I_RING_OF_POWER); creation_message(mage, I_RING_OF_POWER);
@ -7235,6 +7255,11 @@ sp_createitem_runesword(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_RUNESWORD,1); change_item(mage,I_RUNESWORD,1);
creation_message(mage, I_RUNESWORD); creation_message(mage, I_RUNESWORD);
@ -7250,6 +7275,11 @@ sp_createitem_aura(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_AURAKULUM,1); change_item(mage,I_AURAKULUM,1);
creation_message(mage, I_AURAKULUM); creation_message(mage, I_AURAKULUM);
@ -7267,6 +7297,11 @@ sp_createitem_regeneration(castorder *co)
{ {
unit *mage = (unit *)co->magician; unit *mage = (unit *)co->magician;
int cast_level = co->level; int cast_level = co->level;
unit *familiar = (unit *)co->familiar;
if (familiar){
mage = familiar;
}
change_item(mage,I_RING_OF_REGENERATION,1); change_item(mage,I_RING_OF_REGENERATION,1);
creation_message(mage, I_RING_OF_REGENERATION); creation_message(mage, I_RING_OF_REGENERATION);