- The AI will no longer try to activate Helm of Kaldra all the time.

This commit is contained in:
Sloth
2013-05-05 21:16:06 +00:00
parent fea6ac738a
commit 5f63ab30be
3 changed files with 9 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ ManaCost:3
Types:Legendary Artifact Equipment
K:Equip 2
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddKeyword$ First Strike & Trample & Haste | Description$ Equipped creature has first strike, trample, and haste.
A:AB$ Token | Cost$ 1 | TokenAmount$ 1 | TokenImage$ C 4 4 Kaldra | TokenName$ Kaldra | TokenTypes$ Legendary,Creature,Avatar | TokenOwner$ You | TokenColors$ Colorless | TokenPower$ 4 | TokenToughness$ 4 | SubAbility$ DBAttachEach | RememberTokens$ True | ConditionCheckSVar$ HelmX | ConditionSVarCompare$ EQ2 | SpellDescription$ If you control Equipment named CARDNAME, Sword of Kaldra, and Shield of Kaldra, put a legendary 4/4 colorless Avatar creature token named Kaldra onto the battlefield and attach those Equipment to it.
A:AB$ Token | Cost$ 1 | TokenAmount$ 1 | TokenImage$ C 4 4 Kaldra | TokenName$ Kaldra | TokenTypes$ Legendary,Creature,Avatar | TokenOwner$ You | TokenColors$ Colorless | TokenPower$ 4 | TokenToughness$ 4 | SubAbility$ DBAttachEach | RememberTokens$ True | ConditionCheckSVar$ HelmX | ConditionSVarCompare$ EQ2 | AILogic$ Never | SpellDescription$ If you control Equipment named CARDNAME, Sword of Kaldra, and Shield of Kaldra, put a legendary 4/4 colorless Avatar creature token named Kaldra onto the battlefield and attach those Equipment to it.
SVar:DBAttachEach:DB$ RepeatEach | UseImprinted$ True | RepeatCards$ Card.Self,Equipment.YouCtrl+namedSword of Kaldra,Equipment.YouCtrl+namedShield of Kaldra | CheckSVar$ HelmY | SVarCompare$ EQ1 | RepeatSubAbility$ DBAttach | SubAbility$ DBCleanup
SVar:DBAttach:DB$ Attach | Object$ Imprinted | Defined$ Remembered
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True

View File

@@ -83,6 +83,8 @@ public class AnimateAi extends SpellAbilityAi {
} else {
bFlag = true;
}
} if ("Never".equals(sa.getParam("AILogic"))) {
return false;
}
} else for (final Card c : defined) {
bFlag |= !c.isCreature() && !c.isTapped()

View File

@@ -74,6 +74,12 @@ public class TokenAi extends SpellAbilityAi {
return false;
}
if (sa.hasParam("AILogic")) {
if ("Never".equals(sa.getParam("AILogic"))) {
return false;
}
}
Player opp = ai.getOpponent();
for (final String type : this.tokenTypes) {
if (type.equals("Legendary")) {