[Commits] [wesnoth/wesnoth] c761a8: Restore the new implementation of the backstab wea...

GitHub noreply at github.com
Sun Mar 6 23:30:45 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c761a80bd53a9537e09a7008ad9c17031e7604ca
      https://github.com/wesnoth/wesnoth/commit/c761a80bd53a9537e09a7008ad9c17031e7604ca
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-03-06 (Sun, 06 Mar 2016)

  Changed paths:
    M data/core/macros/abilities.cfg
    M src/unit_abilities.cpp

  Log Message:
  -----------
  Restore the new implementation of the backstab weapon special

This reverts commit e0ac69ce962069de1f04e519db48b58a78e593b4.


  Commit: c7de7ce9d428ed82f67a157b92b97cfd5608f54c
      https://github.com/wesnoth/wesnoth/commit/c7de7ce9d428ed82f67a157b92b97cfd5608f54c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-03-06 (Sun, 06 Mar 2016)

  Changed paths:
    M src/reports.cpp
    M src/unit_abilities.cpp
    M src/unit_attack_type.hpp

  Log Message:
  -----------
  Fix backstab always showing augmented damage in sidebar

Until now, [damage] (and possibly other) specials which relied on filters involving the opponent would display
in the sidebar as if the augmentation were always active (though when attacking, it worked correctly).
This is now fixed - such specials never show the augmentation in the sidebar now.

In addition, some minor code cleanup (initializing the weapon special adjacency filters outside the loop).


Compare: https://github.com/wesnoth/wesnoth/compare/d3d63b6a4c21...c7de7ce9d428


More information about the Commits mailing list