From 73efa3b7033a010bf91095ac8903102f76bd4a0e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 10 May 2009 16:08:31 +0000 Subject: [PATCH] =?UTF-8?q?http://bugs.eressea.de/view.php=3Fid=3D1512=20F?= =?UTF-8?q?ehlerhafte=20Zauber-Meldung=20Schattenmeisterbeschw=C3=B6rung?= =?UTF-8?q?=20-=20show=20true=20amount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/spells/spells.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/spells/spells.c b/src/common/spells/spells.c index e28abbf2e..cbdf7c302 100644 --- a/src/common/spells/spells.c +++ b/src/common/spells/spells.c @@ -3360,14 +3360,15 @@ sp_summonshadowlords(castorder *co) unit *mage = co->magician.u; int cast_level = co->level; double force = co->force; + int amount = (int)(force*force); - u = create_unit(r, mage->faction, (int)(force*force), new_race[RC_SHADOWLORD], 0, NULL, mage); + u = create_unit(r, mage->faction, amount, new_race[RC_SHADOWLORD], 0, NULL, mage); /* Bekommen Tarnung = Magie und Wahrnehmung 5. */ set_level(u, SK_STEALTH, get_level(mage, SK_MAGIC)); set_level(u, SK_PERCEPTION, 5); - ADDMSG(&mage->faction->msgs, msg_message("summon_effect", "mage amount race", mage, 1, u->race)); + ADDMSG(&mage->faction->msgs, msg_message("summon_effect", "mage amount race", mage, amount, u->race)); return cast_level; }