Skip to content

Commit

Permalink
~ no inPlay check for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac committed Dec 21, 2024
1 parent a6bd61c commit a2bbd7f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions forge-ai/src/main/java/forge/ai/CreatureEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ else if (c.hasKeyword(Keyword.WITHER)) {

if (c.hasSVar("EndOfTurnLeavePlay")) {
value -= subValue(50, "eot-leaves");
} else if (c.isInPlay()) {
} else {
for (Trigger t : c.getTriggers()) {
if (!TriggerType.Phase.equals(t.getMode())) {
continue;
Expand Down Expand Up @@ -272,19 +272,6 @@ else if (c.hasKeyword(Keyword.WITHER)) {
value -= subValue(20, "sac-unless");
}
}
} else {
if (c.hasKeyword(Keyword.CUMULATIVE_UPKEEP)) {
value -= subValue(30, "cupkeep");
} else if (c.hasKeyword(Keyword.ECHO) && c.cameUnderControlSinceLastUpkeep()) {
value -= subValue(10, "echo-unpaid");
}

if (c.hasKeyword(Keyword.FADING)) {
value -= subValue(20 / (Math.max(1, c.getCounters(CounterEnumType.FADE))), "fading");
}
if (c.hasKeyword(Keyword.VANISHING)) {
value -= subValue(20 / (Math.max(1, c.getCounters(CounterEnumType.TIME))), "vanishing");
}
}

// card-specific evaluation modifier
Expand Down

0 comments on commit a2bbd7f

Please sign in to comment.