Accept heal_full in [effect]apply_to=variation

I thought this had been done in 217992a843 but it turns out that was in the rejected version of the commit and didn't find its way into the final version.
Instead of reverting the schema and changelog mentions of it, I've just added the feature.
This commit is contained in:
Celtic Minstrel 2019-11-12 08:02:16 -05:00
parent 04207cc723
commit 9a6953d2de

View file

@ -2239,6 +2239,9 @@ void unit::apply_builtin_effect(std::string apply_to, const config& effect)
const unit_type* base_type = unit_types.find(type().base_id());
assert(base_type != nullptr);
advance_to(*base_type);
if(effect["heal_full"].to_bool(false)) {
heal_fully();
}
} else if(effect["apply_to"] == "type") {
std::string prev_type = effect["prev_type"];
if(prev_type.empty()) {