Add deprecation warning for backstab=
This commit is contained in:
parent
f54d6b5d28
commit
421b34d04a
1 changed files with 4 additions and 0 deletions
|
@ -975,6 +975,10 @@ effect::effect(const unit_ability_list& list, int def, bool backstab) :
|
|||
BOOST_FOREACH (const unit_ability & ability, list) {
|
||||
const config& cfg = *ability.first;
|
||||
std::string const &effect_id = cfg[cfg["id"].empty() ? "name" : "id"];
|
||||
|
||||
if (!cfg["backstab"].blank()) {
|
||||
lg::wml_error << "The backstab= key in weapon specials is deprecated; use [filter_adjacent] instead\n";
|
||||
}
|
||||
|
||||
if (!backstab && cfg["backstab"].to_bool())
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue