mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- The AI will no longer try to activate Helm of Kaldra all the time.
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:3
|
|||||||
Types:Legendary Artifact Equipment
|
Types:Legendary Artifact Equipment
|
||||||
K:Equip 2
|
K:Equip 2
|
||||||
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddKeyword$ First Strike & Trample & Haste | Description$ Equipped creature has first strike, trample, and haste.
|
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: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:DBAttach:DB$ Attach | Object$ Imprinted | Defined$ Remembered
|
||||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||||
|
|||||||
@@ -83,6 +83,8 @@ public class AnimateAi extends SpellAbilityAi {
|
|||||||
} else {
|
} else {
|
||||||
bFlag = true;
|
bFlag = true;
|
||||||
}
|
}
|
||||||
|
} if ("Never".equals(sa.getParam("AILogic"))) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} else for (final Card c : defined) {
|
} else for (final Card c : defined) {
|
||||||
bFlag |= !c.isCreature() && !c.isTapped()
|
bFlag |= !c.isCreature() && !c.isTapped()
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ public class TokenAi extends SpellAbilityAi {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sa.hasParam("AILogic")) {
|
||||||
|
if ("Never".equals(sa.getParam("AILogic"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Player opp = ai.getOpponent();
|
Player opp = ai.getOpponent();
|
||||||
for (final String type : this.tokenTypes) {
|
for (final String type : this.tokenTypes) {
|
||||||
if (type.equals("Legendary")) {
|
if (type.equals("Legendary")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user