mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
CardTraitBase: fixed WerewolfUntransformCondition for multiplayers
This commit is contained in:
@@ -358,10 +358,10 @@ public abstract class CardTraitBase extends GameObject implements IHasCardView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (params.containsKey("WerewolfUntransformCondition")) {
|
if (params.containsKey("WerewolfUntransformCondition")) {
|
||||||
final List<Card> you = CardUtil.getLastTurnCast("Card.YouCtrl", this.getHostCard());
|
List<Card> casted = game.getStack().getSpellsCastLastTurn();
|
||||||
final List<Card> opp = CardUtil.getLastTurnCast("Card.YouDontCtrl", this.getHostCard());
|
for (Player p : game.getPlayers()) {
|
||||||
if (!((you.size() > 1) || (opp.size() > 1))) {
|
if (CardLists.filterControlledBy(casted, p).size() > 1)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user