mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- A somewhat simpler implementation of untransform condition
This commit is contained in:
@@ -361,8 +361,7 @@ public abstract class CardTraitBase extends GameObject implements IHasCardView {
|
|||||||
List<Card> casted = game.getStack().getSpellsCastLastTurn();
|
List<Card> casted = game.getStack().getSpellsCastLastTurn();
|
||||||
boolean conditionMet = false;
|
boolean conditionMet = false;
|
||||||
for (Player p : game.getPlayers()) {
|
for (Player p : game.getPlayers()) {
|
||||||
if (CardLists.filterControlledBy(casted, p).size() > 1)
|
conditionMet |= CardLists.filterControlledBy(casted, p).size() > 1;
|
||||||
conditionMet = true;
|
|
||||||
}
|
}
|
||||||
if (!conditionMet) {
|
if (!conditionMet) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user