mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Clean up
This commit is contained in:
@@ -210,7 +210,6 @@ public class SetStateAi extends SpellAbilityAi {
|
||||
|
||||
// if an opponent can't block it, no need to transform (back)
|
||||
for (Player opp : ai.getOpponents()) {
|
||||
|
||||
boolean attackCard = !ComputerUtilCard.canBeBlockedProfitably(opp, original);
|
||||
boolean attackTransformed = !ComputerUtilCard.canBeBlockedProfitably(opp, copy);
|
||||
|
||||
|
||||
@@ -408,9 +408,8 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
CardCloneStates clStates = getLastClonedState();
|
||||
if (clStates == null) {
|
||||
return getOriginalState(state);
|
||||
} else {
|
||||
return clStates.get(state);
|
||||
}
|
||||
return clStates.get(state);
|
||||
}
|
||||
|
||||
public boolean hasState(final CardStateName state) {
|
||||
@@ -420,9 +419,8 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
CardCloneStates clStates = getLastClonedState();
|
||||
if (clStates == null) {
|
||||
return states.containsKey(state);
|
||||
} else {
|
||||
return clStates.containsKey(state);
|
||||
}
|
||||
return clStates.containsKey(state);
|
||||
}
|
||||
|
||||
public CardState getOriginalState(final CardStateName state) {
|
||||
|
||||
Reference in New Issue
Block a user