Krazick / 18XX-Game-Engine

18XX Game Engine
MIT License
2 stars 0 forks source link

Apply Action Adding License failed when applying to remote clients #232

Closed Krazick closed 7 months ago

Krazick commented 8 months ago

On a Network Game, when a player buys a license, and the action is sent to remote clients, those clients report a failure to add the license.

Krazick commented 7 months ago

The Failure was due to the root Class 'Effect' has it's applyEffect method called after the primary effect was applied. The method worked properly otherwise. Corrected so this is not called, and a proper failure message if the ToActor is NOT a Train Company is set. The undo method had the same issue.