Check allies have same home site to allow transfers

Courtesy of Tbiesty!
This commit is contained in:
PhallenCassidy
2018-06-02 20:27:19 -04:00
committed by GitHub
parent 1c447dc212
commit ce3e7be41d

View File

@@ -71,6 +71,16 @@ public class AbstractAlly extends AbstractPermanent {
return null;
}
@Override
public int[] getAllyHomeSiteNumbers() {
return _siteNumbers;
}
@Override
public Block getAllyHomeSiteBlock() {
return _siteBlock;
}
@Override
public final boolean isAllyAtHome(int siteNumber, Block block) {
if (block != _siteBlock)