mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Merge pull request #5236 from jesusjbr/master
Fix Xantcha, Sleeper Agent.
This commit is contained in:
commit
8b8392f42c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue