forked from github/server
- Rassentarnung wird nur noch vererbt, wenn die erschaffene Einheit sich
auch Rassentarnen kann.
This commit is contained in:
parent
a26a079f10
commit
28fff31428
|
@ -195,7 +195,7 @@ setstealth(unit * u, strlist * S)
|
|||
if (u->race->flags & RCF_SHAPESHIFT) {
|
||||
if (playerrace(trace)) {
|
||||
u->irace = trace;
|
||||
if (u->race->flags & RCF_SHAPESHIFTANY && get_racename(u->attribs))
|
||||
if ((u->race->flags & RCF_SHAPESHIFTANY) && get_racename(u->attribs))
|
||||
set_racename(&u->attribs, NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1701,7 +1701,7 @@ create_unit(region * r, faction * f, int number, const struct race *urace, int i
|
|||
|
||||
/* Daemonentarnung */
|
||||
set_racename(&u->attribs, get_racename(creator->attribs));
|
||||
if (fval(creator->race, RCF_SHAPESHIFT)) {
|
||||
if (fval(u->race, RCF_SHAPESHIFT) && fval(creator->race, RCF_SHAPESHIFT)) {
|
||||
u->irace = creator->irace;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue