[Commits] [wesnoth/wesnoth] c41e57: reset units variables mods table before applying m...
GitHub
noreply at github.com
Tue Aug 15 14:12:54 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: c41e57ddb9f3264f472640bac2d8f46209847e66
https://github.com/wesnoth/wesnoth/commit/c41e57ddb9f3264f472640bac2d8f46209847e66
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2017-08-15 (Tue, 15 Aug 2017)
Changed paths:
M src/units/unit.cpp
Log Message:
-----------
reset units variables mods table before applying modifications
This way you can use [effect]s that change units variables just like other effects, those effects should only change the mods subnode though.
The main reason why i chosoe to call it `mods` instead of `modifications` is that i think this is less likeley to break content in case people for some reason store the units modifications in the units variables.
More information about the Commits
mailing list