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:
parent
04207cc723
commit
9a6953d2de
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue