With the original TransformUnit the unit-peasant become unit-attack-peasant only in GameCycle=2.
But the Defeat-Trigger that counts them is already executed in in GameCycle=1. This trigger then counts 0 units of type 'unit-attack-peasant' and the mission is lost.
With the original TransformUnit the unit-peasant become unit-attack-peasant only in GameCycle=2. But the Defeat-Trigger that counts them is already executed in in GameCycle=1. This trigger then counts 0 units of type 'unit-attack-peasant' and the mission is lost.
This happens since https://github.com/Wargus/stratagus/pull/626 was merged: b5e5bb0c6a18ccbf ("Merge pull request #626 from zzam/trigger-each-cycle")
Before the code was fragile but it worked due to the ordering of triggers.
Closes: https://github.com/Wargus/wargus/issues/458