We-the-People-civ4col-mod / Mod

This is the repository where the mod resides.
84 stars 36 forks source link

Talking to Village Chief bugs out if a unit that cannot talk to chiefs is selected and ahead of the unit that can talk to the chief. #1030

Open Razonatair opened 5 days ago

Razonatair commented 5 days ago

Just experienced this strange little bug. I have a Treasure and a Failed Trader in a Native Village that hasn't been met yet. The Treasure is listed ahead of the Failed Trader. I had them both selected, then clicked the button to talk to the chief, but nothing happened. After that, I cannot talk to the village anymore. I suspect there is a bool getting flipped before a check occurs that the unit can actually talk to the village, only the code doesn't check for the presence of any other unit that could talk to the chief within the selection of units.

devolution79 commented 5 days ago

When multiple units are selected, the units act as a (Selection)group. You may be right that there is something going on with the ordering of actions here and I suspect that there are many lingering issues that are related to groups formed from weird (as in unexpected by the game logic) unit combinations Note that this is something that really only applies to human players since the AI never groups unrelated units.