Consider regenerating units as effectively unpoisonable
This commit is contained in:
parent
26c993207b
commit
8c0f21f9eb
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ return {
|
|||
local recruit_flat_defense = wesnoth.unit_defense(recruit, "Gt")
|
||||
local recruit_best_defense = get_best_defense(recruit)
|
||||
|
||||
local can_poison_retaliation = poisonable(recruit) or wesnoth.unit_ability(recruit, 'regenerate')
|
||||
local can_poison_retaliation = poisonable(recruit) and (not wesnoth.unit_ability(recruit, 'regenerate'))
|
||||
best_flat_attack, best_flat_damage, flat_poison = get_best_attack(recruit, unit, flat_defense, recruit_best_defense, can_poison)
|
||||
best_high_defense_attack, best_high_defense_damage, high_defense_poison = get_best_attack(recruit, unit, best_defense, recruit_flat_defense, can_poison)
|
||||
best_retaliation, best_retaliation_damage, retaliation_poison = get_best_attack(unit, recruit, recruit_flat_defense, best_defense, can_poison_retaliation)
|
||||
|
|
Loading…
Add table
Reference in a new issue