[wesnoth-commits] [wesnoth/wesnoth] 1892ba: Fix better_attack evaluation for poison attacks

mattsc noreply at github.com
Sat Apr 10 16:26:58 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1892ba32edf857c9f72d22f941b47f8e399d272a
      https://github.com/wesnoth/wesnoth/commit/1892ba32edf857c9f72d22f941b47f8e399d272a
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2021-04-09 (Fri, 09 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.


  Commit: fabaa5a28eb261f3b7a80c34b8b61dc603357df6
      https://github.com/wesnoth/wesnoth/commit/fabaa5a28eb261f3b7a80c34b8b61dc603357df6
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M src/actions/attack.cpp

  Log Message:
  -----------
  Merge pull request #5693 from mattsc/attack_comparison_poison

Fix better_attack evaluation for poison attacks


Compare: https://github.com/wesnoth/wesnoth/compare/17cbc7c03e19...fabaa5a28eb2



More information about the Commits mailing list