Fixed bug 10049:

If a unit with 'non-living=yes' attacks a unit with a plague attack,
and the unit with the plague attack kills it, a new plague unit will
be created.
This commit is contained in:
Philippe Plantier 2004-08-22 13:37:37 +00:00
parent 5bbf79e482
commit f55209a32e

View file

@ -407,7 +407,7 @@ battle_stats evaluate_battle_stats(
res.amount_defender_drains = 0;
}
res.defender_plague = (defender_attacks[defend].special() == plague_string);
res.defender_plague = !a->second.type().not_living() && (defender_attacks[defend].special() == plague_string);
res.defender_slows = (defender_attacks[defend].special() == slow_string);
static const std::string first_strike = "firststrike";