mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Changed useRemovalNow() condition from isSpell() to !isTrigger. Added "PlayMain1" to Xenagod to make use of pre-combat trigger.
This commit is contained in:
@@ -912,7 +912,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
||||
choice = mostExpensive;
|
||||
}
|
||||
//option to hold removal instead only applies for single targeted removal
|
||||
if (sa.isSpell() && tgt.getMaxTargets(source, sa) == 1) {
|
||||
if (!sa.isTrigger() && tgt.getMaxTargets(source, sa) == 1) {
|
||||
if (!ComputerUtilCard.useRemovalNow(sa, choice, 0, destination)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -360,7 +360,7 @@ public class DamageDealAi extends DamageAiBase {
|
||||
final Card c = this.dealDamageChooseTgtC(ai, sa, dmg, noPrevention, enemy, mandatory);
|
||||
if (c != null) {
|
||||
//option to hold removal instead only applies for single targeted removal
|
||||
if (sa.isSpell() && tgt.getMaxTargets(sa.getHostCard(), sa) == 1 && !divided) {
|
||||
if (!sa.isTrigger() && tgt.getMaxTargets(sa.getHostCard(), sa) == 1 && !divided) {
|
||||
if (!ComputerUtilCard.useRemovalNow(sa, c, dmg, ZoneType.Graveyard)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ public class DestroyAi extends SpellAbilityAi {
|
||||
choice = ComputerUtilCard.getMostExpensivePermanentAI(list, sa, true);
|
||||
}
|
||||
//option to hold removal instead only applies for single targeted removal
|
||||
if (sa.isSpell() && abTgt.getMaxTargets(sa.getHostCard(), sa) == 1) {
|
||||
if (!sa.isTrigger() && abTgt.getMaxTargets(sa.getHostCard(), sa) == 1) {
|
||||
if (!ComputerUtilCard.useRemovalNow(sa, choice, 0, ZoneType.Graveyard)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ public class PumpAi extends PumpAiBase {
|
||||
|
||||
t = ComputerUtilCard.getBestAI(list);
|
||||
//option to hold removal instead only applies for single targeted removal
|
||||
if (sa.isSpell() && tgt.getMaxTargets(source, sa) == 1 && sa.isCurse()) {
|
||||
if (!sa.isTrigger() && tgt.getMaxTargets(source, sa) == 1 && sa.isCurse()) {
|
||||
if (!ComputerUtilCard.useRemovalNow(sa, t, -defense, ZoneType.Graveyard)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ SVar:X:Count$DevotionDual.R.G
|
||||
T:Mode$ Phase | Phase$ BeginCombat | ValidPlayer$ You | Execute$ TrigPump | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of combat on your turn, another target creature you control gains haste and gets +X/+X until end of turn, where X is that creature's power.
|
||||
SVar:TrigPump:AB$ Pump | Cost$ 0 | ValidTgts$ Creature.Other+YouCtrl | TgtPrompt$ Select another target creature you control | NumAtt$ +Y | NumDef$ +Y | KW$ Haste | References$ Y
|
||||
SVar:Y:Targeted$CardPower
|
||||
SVar:PlayMain1:TRUE
|
||||
SVar:BuffedBy:Permanent.Red,Permanent.Green
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/xenagos_god_of_revels.jpg
|
||||
Oracle:Indestructible\nAs long as your devotion to red and green is less than seven, Xenagos isn't a creature.\nAt the beginning of combat on your turn, another target creature you control gains haste and gets +X/+X until end of turn, where X is that creature's power.
|
||||
|
||||
Reference in New Issue
Block a user