mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
* Tarmogoyf - Fixed a bug that instead of different card types the number of all cards were counted.
This commit is contained in:
parent
51a493f3f0
commit
5870b0ed7d
1 changed files with 2 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
package mage.sets.futuresight;
|
package mage.sets.futuresight;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.HashSet;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
|
@ -45,7 +45,6 @@ import mage.constants.SubLayer;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import org.apache.log4j.Logger;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -98,7 +97,7 @@ class TarmogoyfEffect extends ContinuousEffectImpl<TarmogoyfEffect> {
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
MageObject target = game.getObject(source.getSourceId());
|
MageObject target = game.getObject(source.getSourceId());
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
ArrayList<CardType> foundCardTypes = new ArrayList<>();
|
HashSet<CardType> foundCardTypes = new HashSet<>();
|
||||||
for (UUID playerId : controller.getInRange()) {
|
for (UUID playerId : controller.getInRange()) {
|
||||||
Player player = game.getPlayer(playerId);
|
Player player = game.getPlayer(playerId);
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
|
|
Loading…
Reference in a new issue