forked from github/server
- Bei einer versklavten Einheit wird die Rasse geändert
This commit is contained in:
parent
bd8a8634fc
commit
f5b6d89c1b
|
@ -222,16 +222,18 @@ kor_teure_talente(unit *u)
|
||||||
static void
|
static void
|
||||||
no_teurefremde(boolean convert)
|
no_teurefremde(boolean convert)
|
||||||
{
|
{
|
||||||
|
const curse_type * slave_ct = ct_find("slavery");
|
||||||
region *r;
|
region *r;
|
||||||
|
|
||||||
for(r=regions;r;r=r->next) {
|
for(r=regions;r;r=r->next) {
|
||||||
unit *u;
|
unit *u;
|
||||||
|
|
||||||
for(u=r->units;u;u=u->next) {
|
for(u=r->units;u;u=u->next) {
|
||||||
if (u->faction->no != MONSTER_FACTION
|
if (u->faction->no != MONSTER_FACTION && playerrace(u->faction->race)
|
||||||
&& playerrace(u->faction->race)
|
|
||||||
&& is_migrant(u) && kor_teure_talente(u))
|
&& is_migrant(u) && kor_teure_talente(u))
|
||||||
{
|
{
|
||||||
|
if (slave_ct && curse_active(get_curse(u->attribs, slave_ct)))
|
||||||
|
continue;
|
||||||
log_warning(("Teurer Migrant: %s, Partei %s\n",
|
log_warning(("Teurer Migrant: %s, Partei %s\n",
|
||||||
unitname(u), factionname(u->faction)));
|
unitname(u), factionname(u->faction)));
|
||||||
if (convert) {
|
if (convert) {
|
||||||
|
|
Loading…
Reference in New Issue