forked from github/server
fix familiar-fixes
This commit is contained in:
parent
11bc581285
commit
5e57e78818
1 changed files with 3 additions and 2 deletions
|
@ -845,6 +845,7 @@ check_mages(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -867,12 +868,12 @@ fix_familiars(void)
|
||||||
log_error(("%s was a %s familiar with no mage for faction %s\n",
|
log_error(("%s was a %s familiar with no mage for faction %s\n",
|
||||||
unitid(u), racename(lang, u, u->race),
|
unitid(u), racename(lang, u, u->race),
|
||||||
factionid(u->faction)));
|
factionid(u->faction)));
|
||||||
a_remove(&u->attribs, a);
|
remove_familiar(u);
|
||||||
} else if (!is_mage(mage)) {
|
} else if (!is_mage(mage)) {
|
||||||
log_error(("%s was a %s familiar, but %s is not a mage for faction %s\n",
|
log_error(("%s was a %s familiar, but %s is not a mage for faction %s\n",
|
||||||
unitid(u), racename(lang, u, u->race), unitid(mage),
|
unitid(u), racename(lang, u, u->race), unitid(mage),
|
||||||
factionid(u->faction)));
|
factionid(u->faction)));
|
||||||
a_remove(&u->attribs, a);
|
remove_familiar(u);
|
||||||
} else if (has_skill(u, SK_MAGIC) && !is_mage(u)) {
|
} else if (has_skill(u, SK_MAGIC) && !is_mage(u)) {
|
||||||
log_error(("%s is a familiar with magic skill, but did not have a mage-attribute\n",
|
log_error(("%s is a familiar with magic skill, but did not have a mage-attribute\n",
|
||||||
unitid(u)));
|
unitid(u)));
|
||||||
|
|
Loading…
Reference in a new issue