Make canSee do stuff

This commit is contained in:
libraryaddict 2013-12-02 01:35:20 +13:00
parent 7505b0aca8
commit 58485e9b1c

View File

@ -17,7 +17,11 @@ public abstract class TargettedDisguise extends Disguise {
}
public boolean canSee(String playername) {
return disguiseViewers.contains(playername);
boolean contains = disguiseViewers.contains(playername);
if (targetType == TargetType.HIDE_FROM_THESE) {
return !contains;
}
return contains;
}
public void setViewDisguise(Player player) {