Follow-up Comment #2, bug #14076 (project wesnoth):

My point was indeed that the formula is flawed when berserk units are
involved. But note that you don't need to consider "next turn counterattack".
Just consider the next unit attacking in the same turn. Since the first unit
attacking is doing a suicide attack, the defending unit won't die, so the AI
(or the player) will have to launch another attack.

In fact, the AI would not launch a suicide attack for naught, so it may have
queued another unit already. As a consequence, the defending berserk unit
will eventually die. But because of the current weapon selection, an
attacking unit died too.

I'm not suggesting major changes to the current formula, as I think it works
fine in almost every other cases. In particular, no need to introduce unit
cost, since it is already taken into account elsewhere. But there should be a
conservative change to it, so that an attack of the attacking unit does not
become overrated when it incurs a berserk defense (due to the defending unit
necessarily having a nonzero chance of dying).

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14076>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to