From eb16d7bf4765013d79b15a7d682c9119b6b419bd Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 Mar 2020 17:55:07 +0100 Subject: [PATCH] =?UTF-8?q?Bug=202645=20TARNE=20[Stufe]=20reagiert=20auf?= =?UTF-8?q?=20Talent=C3=A4nderungen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/attributes/stealth.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/attributes/stealth.c b/src/attributes/stealth.c index ae00e8721..4a9b6f044 100644 --- a/src/attributes/stealth.c +++ b/src/attributes/stealth.c @@ -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;