diff options
Diffstat (limited to 'diplomacy/integration/webdiplomacy_net/orders.py')
-rw-r--r-- | diplomacy/integration/webdiplomacy_net/orders.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/diplomacy/integration/webdiplomacy_net/orders.py b/diplomacy/integration/webdiplomacy_net/orders.py index 60cc86a..afacf03 100644 --- a/diplomacy/integration/webdiplomacy_net/orders.py +++ b/diplomacy/integration/webdiplomacy_net/orders.py @@ -166,6 +166,11 @@ class Order(): :type game: diplomacy.Game """ # pylint: disable=too-many-return-statements,too-many-branches,too-many-statements + # Converting move to retreat during retreat phase + if self.phase_type == 'R': + order = order.replace(' - ', ' R ') + + # Splitting into parts words = order.split() # --- Wait / Waive --- |