From 58485e9b1c6afd55a20e6618fc10a28002372f14 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 2 Dec 2013 01:35:20 +1300 Subject: [PATCH] Make canSee do stuff --- .../disguise/disguisetypes/TargettedDisguise.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/TargettedDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/TargettedDisguise.java index 950f2b15..364aed37 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/TargettedDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/TargettedDisguise.java @@ -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) {