Kael
Deity
From what Im working on it looks like onEndPlayerTurn gets called right after onBeginPlayerTurn but before the player performs his actions.
I assumed that onEndPlayerTurn was run well... at the end of the turn. Has anyone else noticed this. Where are you putting your events that you want to kick at the end of the players turn?
BTW: I came across this because I was adding promotions to units at the begining of that players turn and cleaning them up at the end of the players turns (simulating the fact that the unit was a good attacker but not defender). But the promotion never showed up. By taking the removal off of onEndPlayerTurn the promotion started showing up. It was getting added and removed by onEndPlayerTurn before the player got to take his actions.
I assumed that onEndPlayerTurn was run well... at the end of the turn. Has anyone else noticed this. Where are you putting your events that you want to kick at the end of the players turn?
BTW: I came across this because I was adding promotions to units at the begining of that players turn and cleaning them up at the end of the players turns (simulating the fact that the unit was a good attacker but not defender). But the promotion never showed up. By taking the removal off of onEndPlayerTurn the promotion started showing up. It was getting added and removed by onEndPlayerTurn before the player got to take his actions.