[CMR] Fix Port Razer

This commit is contained in:
Daniel Bomar 2020-11-07 00:53:41 -06:00
parent 09bf1e0855
commit 0bcd69eb12

View file

@ -82,7 +82,7 @@ class PortRazerEffect extends RestrictionEffect {
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
return true;
return permanent.getId().equals(source.getSourceId());
}
}
@ -110,6 +110,6 @@ class PortRazerWatcher extends Watcher {
}
boolean checkAttacker(Permanent permanent, UUID defenderId) {
return attackMap.computeIfAbsent(permanent.getId(), x -> new HashSet<>()).contains(defenderId);
return !attackMap.computeIfAbsent(permanent.getId(), x -> new HashSet<>()).contains(defenderId);
}
}