This commit is contained in:
tool4EvEr
2021-10-08 21:35:50 +02:00
parent 9f7012f718
commit 04c1b2664f
2 changed files with 2 additions and 5 deletions

View File

@@ -210,7 +210,6 @@ public class SetStateAi extends SpellAbilityAi {
// if an opponent can't block it, no need to transform (back) // if an opponent can't block it, no need to transform (back)
for (Player opp : ai.getOpponents()) { for (Player opp : ai.getOpponents()) {
boolean attackCard = !ComputerUtilCard.canBeBlockedProfitably(opp, original); boolean attackCard = !ComputerUtilCard.canBeBlockedProfitably(opp, original);
boolean attackTransformed = !ComputerUtilCard.canBeBlockedProfitably(opp, copy); boolean attackTransformed = !ComputerUtilCard.canBeBlockedProfitably(opp, copy);

View File

@@ -408,9 +408,8 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
CardCloneStates clStates = getLastClonedState(); CardCloneStates clStates = getLastClonedState();
if (clStates == null) { if (clStates == null) {
return getOriginalState(state); return getOriginalState(state);
} else {
return clStates.get(state);
} }
return clStates.get(state);
} }
public boolean hasState(final CardStateName state) { public boolean hasState(final CardStateName state) {
@@ -420,9 +419,8 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
CardCloneStates clStates = getLastClonedState(); CardCloneStates clStates = getLastClonedState();
if (clStates == null) { if (clStates == null) {
return states.containsKey(state); return states.containsKey(state);
} else {
return clStates.containsKey(state);
} }
return clStates.containsKey(state);
} }
public CardState getOriginalState(final CardStateName state) { public CardState getOriginalState(final CardStateName state) {