[wesnoth-commits] [wesnoth/wesnoth] edab24: Fix rare bug in FORCE_CHANCE_TO_HIT
GitHub
noreply at github.com
Tue Nov 6 21:17:17 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: edab243b9d4e5bbac8b10e28fb0237e201392071
https://github.com/wesnoth/wesnoth/commit/edab243b9d4e5bbac8b10e28fb0237e201392071
Author: newfrenchy83 <31768074+newfrenchy83 at users.noreply.github.com>
Date: 2018-11-06 (Tue, 06 Nov 2018)
Changed paths:
M data/core/macros/utils.cfg
M data/scenario-test.cfg
Log Message:
-----------
Fix rare bug in FORCE_CHANCE_TO_HIT
If in attack end in FORCE_CHANCE_TO_HIT macro, unit or second unit doesn't exist anymore because rare case where unit disapear before attack end event was calledthen we have an error message like "Invalid WML found: [unstore_unit]: variable 'second_unit' doesn't exist" because presence of unit not condition of execution of event.
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the Commits
mailing list