Merge pull request #5236 from jesusjbr/master

Fix Xantcha, Sleeper Agent.
This commit is contained in:
Oleg Agafonov 2018-08-20 15:41:32 +04:00 committed by GitHub
commit 8b8392f42c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
package mage.cards.x;
import java.util.Objects;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
@ -119,7 +120,7 @@ class XantchaSleeperAgentAttackRestrictionEffect extends RestrictionEffect {
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
return true;
return Objects.equals(permanent.getId(), source.getSourceId());
}
@Override