alexweininger/android-catan

Moved robber, stole from settlement not adjacent to hexagon

Closed this issue · 1 comments

I moved the hexagon and then I was able to steal from a settlement that was not adjacent to the hex i moved the robber to.

Fixed this issue; simply got the current hex of the robber and grabbed all the intersections and looped through the ArrayList to check if any matched the selected intersection ID; if not, we don't allow them to steal from the player who owns the selected building