[Commits] [wesnoth/wesnoth] dae453: A new way to make units invulnerable for debugging

GitHub noreply at github.com
Thu Aug 25 17:22:09 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: dae453fe43df444e15cf10efed1bedc3b2ca43dc
      https://github.com/wesnoth/wesnoth/commit/dae453fe43df444e15cf10efed1bedc3b2ca43dc
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-08-25 (Thu, 25 Aug 2016)

  Changed paths:
    M changelog
    M src/actions/attack.cpp
    M src/units/unit.cpp

  Log Message:
  -----------
  A new way to make units invulnerable for debugging

With debug features enabled (the --debug command line switch), select the
unit and type ";unit invulnerable=yes".

This method operates by reducing the opponent's hit chance to zero. As a
result, it doesn't slow down damage calculation unlike the "increase HP
to ridiculous levels" method.





More information about the Commits mailing list