Bug 2645 TARNE [Stufe] reagiert auf Talentänderungen.

This commit is contained in:
Enno Rehling 2020-03-01 17:55:07 +01:00
parent 41cf41120f
commit eb16d7bf47
1 changed files with 6 additions and 1 deletions

View File

@ -37,10 +37,15 @@ int u_geteffstealth(const unit *u)
if (skill_enabled(SK_STEALTH)) { if (skill_enabled(SK_STEALTH)) {
if (u->flags & UFL_STEALTH) { if (u->flags & UFL_STEALTH) {
attrib *a = a_find(u->attribs, &at_stealth); attrib *a = a_find(u->attribs, &at_stealth);
if (a != NULL) if (a != NULL) {
int eff = effskill(u, SK_STEALTH, u->region);
if (eff < a->data.i) {
return eff;
}
return a->data.i; return a->data.i;
} }
} }
}
return -1; return -1;
} }