mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[CMR] Fix Port Razer
This commit is contained in:
parent
09bf1e0855
commit
0bcd69eb12
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class PortRazerEffect extends RestrictionEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue