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