Skip to content

Commit

Permalink
patch the second bug in jsettlers#792
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwedeck committed May 1, 2020
1 parent c18052e commit 90eb439
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,9 @@ public final int getID() {
* Type the movable should be converted to.
*/
public final void convertTo(EMovableType newMovableType) {
// settlers on ferries should not be controllable
if(state == EMovableState.ON_FERRY) return;

if (newMovableType == EMovableType.BEARER && !player.equals(grid.getPlayerAt(position))) {
return; // can't convert to bearer if the ground does not belong to the player
}
Expand Down

0 comments on commit 90eb439

Please sign in to comment.