mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 20:54:16 +00:00
Made plague-created units have same facing as the dead unit, not random
Technically, they now face the opposite direction than the killer, but in practise it's the same thing since in combat units are always facing each other.
This commit is contained in:
parent
3cffd699d9
commit
d4775ccba2
@ -1155,6 +1155,7 @@ namespace {
|
||||
unit_ptr newunit(new unit(*reanimator, attacker.get_unit().side(), true, unit_race::MALE));
|
||||
newunit->set_attacks(0);
|
||||
newunit->set_movement(0, true);
|
||||
newunit->set_facing(map_location::get_opposite_dir(attacker.get_unit().facing()));
|
||||
// Apply variation
|
||||
if (undead_variation != "null")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user