From 83c8dc4832e1250d8bb75cf6fce421885e93a164 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 2 Sep 2004 19:19:25 +0000 Subject: [PATCH] http://eressea.upb.de/mantis/bug_view_page.php?bug_id=0000240 - Flammenschwerthelden viel zu stark. Nur eine FS-Attacke pro Runde --- src/common/kernel/battle.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/kernel/battle.c b/src/common/kernel/battle.c index 2e20ecb25..93cdbbe71 100644 --- a/src/common/kernel/battle.c +++ b/src/common/kernel/battle.c @@ -1980,7 +1980,7 @@ make_heroes(battle * b) #endif static void -attack(battle *b, troop ta, const att *a) +attack(battle *b, troop ta, const att *a, int numattack) { fighter *af = ta.fighter; troop td; @@ -2005,7 +2005,10 @@ attack(battle *b, troop ta, const att *a) ta.fighter->person[ta.index].reload--; } else { boolean standard_attack = true; - if (wp && wp->type->attack) { + + /* spezialattacken der waffe nur, wenn erste attacke in der runde. + * sonst helden mit feuerschwertern zu mächtig */ + if (numattack==0 && wp && wp->type->attack) { int dead = 0; standard_attack = wp->type->attack(&ta, &dead, row); af->catmsg += dead; @@ -2193,7 +2196,7 @@ do_attack(fighter * af) if (wp!=NULL && wp->type->reload) continue; } } - attack(b, ta, &(au->race->attack[a])); + attack(b, ta, &(au->race->attack[a]), apr); } } }