mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Ral Zarek - Fixed target handling of ability one.
This commit is contained in:
parent
317ba7fd87
commit
ce94e573e4
2 changed files with 27 additions and 43 deletions
|
|
@ -46,6 +46,10 @@ public class AnotherTargetPredicate implements ObjectSourcePlayerPredicate<Objec
|
|||
|
||||
private final int targetTag;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param targetTag tag of the target the filter belongs to
|
||||
*/
|
||||
public AnotherTargetPredicate(int targetTag) {
|
||||
this.targetTag = targetTag;
|
||||
}
|
||||
|
|
@ -58,7 +62,7 @@ public class AnotherTargetPredicate implements ObjectSourcePlayerPredicate<Objec
|
|||
if (target.getTargetTag() > 0 // target is included in the target group to check
|
||||
&& target.getTargetTag() != targetTag // it's not the target of this predicate
|
||||
&& target.getTargets().contains(input.getObject().getId())) { // if the uuid already is used for another target in the group it's not allowed here
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue