Attacks don't always have fake units.
This commit is contained in:
parent
aa95024fb4
commit
30e1da1597
1 changed files with 4 additions and 2 deletions
|
@ -159,8 +159,10 @@ void attack::apply_temp_modifier(unit_map& unit_map)
|
|||
|
||||
//Update status of fake unit (not undone by remove_temp_modifiers)
|
||||
//@todo this contradicts the name "temp_modifiers"
|
||||
fake_unit_->set_movement(unit.movement_left());
|
||||
fake_unit_->set_attacks(unit.attacks_left());
|
||||
if (fake_unit_) { //Attacks that are not attack-moves don't have fake units
|
||||
fake_unit_->set_movement(unit.movement_left());
|
||||
fake_unit_->set_attacks(unit.attacks_left());
|
||||
}
|
||||
}
|
||||
|
||||
void attack::remove_temp_modifier(unit_map& unit_map)
|
||||
|
|
Loading…
Add table
Reference in a new issue