mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fix notTarget usage in TargetPermanent
This commit is contained in:
parent
73650bf845
commit
4f3342a854
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public class TargetPermanent<T extends TargetPermanent<T>> extends TargetObject<
|
|||
MageObject targetSource = game.getObject(sourceId);
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(filter, sourceControllerId, sourceId, game)) {
|
||||
if (!targets.containsKey(permanent.getId())) {
|
||||
if (!notTarget || permanent.canBeTargetedBy(targetSource, sourceControllerId, game)) {
|
||||
if (notTarget || permanent.canBeTargetedBy(targetSource, sourceControllerId, game)) {
|
||||
count++;
|
||||
if (count >= remainingTargets) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue