mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* Ground Seal - Fixed a problem, that cards that need to target cards in graveyard caused a game lock, if ground seal was on the battlefield.
This commit is contained in:
parent
bf3e3c0ddb
commit
ba885fef91
6 changed files with 98 additions and 52 deletions
|
|
@ -96,7 +96,7 @@ public class TargetActivatedOrTriggeredAbility extends TargetObject {
|
|||
|
||||
@Override
|
||||
public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {
|
||||
Set<UUID> possibleTargets = new HashSet<UUID>();
|
||||
Set<UUID> possibleTargets = new HashSet<>();
|
||||
for (StackObject stackObject : game.getStack()) {
|
||||
if (stackObject.getStackAbility() != null && (stackObject.getStackAbility() instanceof ActivatedAbility || stackObject.getStackAbility() instanceof TriggeredAbility) && game.getPlayer(sourceControllerId).getInRange().contains(stackObject.getStackAbility().getControllerId())) {
|
||||
possibleTargets.add(stackObject.getStackAbility().getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue