mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Improve Crackling Doom logic
This commit is contained in:
@@ -162,6 +162,12 @@ public class DamageDealAi extends DamageAiBase {
|
||||
String logic = sa.getParamOrDefault("AILogic", "");
|
||||
if ("DiscardLands".equals(logic)) {
|
||||
dmg = 2;
|
||||
} else if ("OpponentHasCreatures".equals(logic)) {
|
||||
for (Player opp : ai.getOpponents()) {
|
||||
if (!opp.getCreaturesInPlay().isEmpty()){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else if (logic.startsWith("ProcRaid.")) {
|
||||
if (ai.getGame().getPhaseHandler().isPlayerTurn(ai) && ai.getGame().getPhaseHandler().getPhase().isBefore(PhaseType.COMBAT_DECLARE_BLOCKERS)) {
|
||||
for (Card potentialAtkr : ai.getCreaturesInPlay()) {
|
||||
|
||||
@@ -47,7 +47,6 @@ public class DamageEachAi extends DamageAiBase {
|
||||
*/
|
||||
@Override
|
||||
protected boolean doTriggerAINoCost(Player ai, SpellAbility sa, boolean mandatory) {
|
||||
|
||||
return mandatory || canPlayAI(ai, sa);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user