Revert parts of 12c96a94 to fix doubled backstab damage in right panel

This commit is contained in:
ln-zookeeper 2016-03-04 23:18:20 +02:00
parent d9716ca162
commit e0ac69ce96
2 changed files with 1 additions and 13 deletions

View file

@ -402,16 +402,8 @@ Enemy units cannot see this unit while it is in deep water, except if they have
name= _ "backstab"
description= _ "When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
multiply=2
backstab=yes
active_on=offense
[filter_opponent]
[filter_adjacent]
adjacent=$other_unit.facing
is_enemy=yes
[not]
status=petrified
[/not]
[/filter_adjacent]
[/filter_opponent]
[/damage]
#enddef

View file

@ -1006,10 +1006,6 @@ effect::effect(const unit_ability_list& list, int def, bool backstab) :
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;
if (!filter_base_matches(cfg, def))