[wesnoth-commits] [wesnoth/wesnoth] 0f688a: Fix better_attack evaluation for poison attacks

mattsc noreply at github.com
Sat Apr 10 17:50:17 UTC 2021


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 0f688a26e63e80820bd2d2de964d2c3a066b37c2
      https://github.com/wesnoth/wesnoth/commit/0f688a26e63e80820bd2d2de964d2c3a066b37c2
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M src/actions/attack.cpp

  Log Message:
  -----------
  Fix better_attack evaluation for poison attacks

Poison is added to the attack damage when comparing attacks by the same unit with different weapons, but it should only be counted as a bonus if the enemy survives, otherwise it serves no purpose.





More information about the Commits mailing list