From c297b20177cd252714546b0b9c6510c591ef724f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 Mar 2005 12:46:55 +0000 Subject: [PATCH] =?UTF-8?q?S=C3=BC=C3=9Fe=20Tr=C3=A4ume=20wirkt=20nicht=20?= =?UTF-8?q?auf=20Helden,=20und=20hat=20Talentverw=C3=A4sserung=20zur=20Fol?= =?UTF-8?q?ge.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/gamecode/randenc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/gamecode/randenc.c b/src/common/gamecode/randenc.c index 27685a642..5c05e7c28 100644 --- a/src/common/gamecode/randenc.c +++ b/src/common/gamecode/randenc.c @@ -1150,7 +1150,8 @@ orc_growth(void) unit *u; for (u = r->units; u; u = u->next) { curse *c = get_curse(u->attribs, ct_find("orcish")); - if (c && !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) { + + if (c && !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY) && !fval(u, UFL_HERO)) { int n; int increase = 0; int num = get_cursedmen(u, c); @@ -1162,9 +1163,9 @@ orc_growth(void) } } if (increase) { - set_number(u, u->number + increase); + u2 = create_unit(r, u->faction, increase, u->race, 0, NULL, u); + transfermen(u2, u, u2->number); - u->hp += unit_max_hp(u) * increase; ADDMSG(&u->faction->msgs, msg_message("orcgrowth", "unit amount race", u, increase, u->race)); }