Changed the method applies in XantchaSleeperRestrictionEffect  to be more readable.
package mage.cards.x;
+import java.util.Objects;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
@@ -119,11 +120,7 @@ class XantchaSleeperAgentAttackRestrictionEffect extends RestrictionEffect {
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
- boolean apply = false;
- if (permanent.getId().equals(source.getSourceId())) {
- apply = true;
- }
- return apply;
+ return Objects.equals(permanent.getId(), source.getSourceId());
}
@Override
