forked from github/server
Bug 2645 TARNE [Stufe] reagiert auf Talentänderungen.
This commit is contained in:
parent
41cf41120f
commit
eb16d7bf47
|
@ -37,8 +37,13 @@ int u_geteffstealth(const unit *u)
|
|||
if (skill_enabled(SK_STEALTH)) {
|
||||
if (u->flags & UFL_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 -1;
|
||||
|
|
Loading…
Reference in New Issue