mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Improve AI for Searing Blaze (#5987)
This commit is contained in:
@@ -723,6 +723,7 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
if (sa.canTarget(enemy) && sa.canAddMoreTarget()) {
|
if (sa.canTarget(enemy) && sa.canAddMoreTarget()) {
|
||||||
if ((phase.is(PhaseType.END_OF_TURN) && phase.getNextTurn().equals(ai))
|
if ((phase.is(PhaseType.END_OF_TURN) && phase.getNextTurn().equals(ai))
|
||||||
|| (isSorcerySpeed(sa, ai) && phase.is(PhaseType.MAIN2))
|
|| (isSorcerySpeed(sa, ai) && phase.is(PhaseType.MAIN2))
|
||||||
|
|| ("BurnCreatures".equals(logic) && !enemy.getCreaturesInPlay().isEmpty())
|
||||||
|| immediately) {
|
|| immediately) {
|
||||||
boolean pingAfterAttack = "PingAfterAttack".equals(logic) && phase.getPhase().isAfter(PhaseType.COMBAT_DECLARE_ATTACKERS) && phase.isPlayerTurn(ai);
|
boolean pingAfterAttack = "PingAfterAttack".equals(logic) && phase.getPhase().isAfter(PhaseType.COMBAT_DECLARE_ATTACKERS) && phase.isPlayerTurn(ai);
|
||||||
boolean isPWAbility = sa.isPwAbility() && sa.getPayCosts().hasSpecificCostType(CostPutCounter.class);
|
boolean isPWAbility = sa.isPwAbility() && sa.getPayCosts().hasSpecificCostType(CostPutCounter.class);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Searing Blaze
|
Name:Searing Blaze
|
||||||
ManaCost:R R
|
ManaCost:R R
|
||||||
Types:Instant
|
Types:Instant
|
||||||
A:SP$ DealDamage | ValidTgts$ Player,Planeswalker | TgtPrompt$ Select target player or planeswalker | NumDmg$ SearingX | DamageMap$ True | SubAbility$ SearingDamage | SpellDescription$ CARDNAME deals 1 damage to target player or planeswalker and 1 damage to target creature that player or that planeswalker's controller controls. Landfall — If you had a land enter the battlefield under your control this turn, CARDNAME deals 3 damage to that player or planeswalker and 3 damage to that creature instead.
|
A:SP$ DealDamage | ValidTgts$ Player,Planeswalker | TgtPrompt$ Select target player or planeswalker | NumDmg$ SearingX | DamageMap$ True | SubAbility$ SearingDamage | AILogic$ BurnCreatures | SpellDescription$ CARDNAME deals 1 damage to target player or planeswalker and 1 damage to target creature that player or that planeswalker's controller controls. Landfall — If you had a land enter the battlefield under your control this turn, CARDNAME deals 3 damage to that player or planeswalker and 3 damage to that creature instead.
|
||||||
SVar:SearingDamage:DB$ DealDamage | ValidTgts$ Creature.ControlledBy ParentTargetedController,Creature.ControlledBy ParentTarget | TgtPrompt$ Select target creature that player or that planeswalker's controller controls | NumDmg$ SearingX | SubAbility$ DBDamageResolve
|
SVar:SearingDamage:DB$ DealDamage | ValidTgts$ Creature.ControlledBy ParentTargetedController,Creature.ControlledBy ParentTarget | TgtPrompt$ Select target creature that player or that planeswalker's controller controls | NumDmg$ SearingX | SubAbility$ DBDamageResolve
|
||||||
SVar:DBDamageResolve:DB$ DamageResolve
|
SVar:DBDamageResolve:DB$ DamageResolve
|
||||||
SVar:SearingX:Count$Landfall.3.1
|
SVar:SearingX:Count$Landfall.3.1
|
||||||
|
|||||||
Reference in New Issue
Block a user