- Fixed AnimateAi logic for cards like Genju of the Falls. Added an AI logic param to Azami, Lady of Scrolls.

This commit is contained in:
Agetian
2018-11-26 20:22:31 +03:00
parent 0555cf6536
commit c4cf123626
2 changed files with 4 additions and 4 deletions

View File

@@ -149,15 +149,15 @@ public class AnimateAi extends SpellAbilityAi {
if (!bFlag && c.isCreature() && (sa.hasParam("Permanent") || (!c.isTapped() && !c.isSick()))) { if (!bFlag && c.isCreature() && (sa.hasParam("Permanent") || (!c.isTapped() && !c.isSick()))) {
int power = -5; int power = -5;
if (sa.hasParam("Power")) { if (sa.hasParam("Power")) {
power = AbilityUtils.calculateAmount(source, sa.getParam("Power"), sa); power = AbilityUtils.calculateAmount(c, sa.getParam("Power"), sa);
} }
int toughness = -5; int toughness = -5;
if (sa.hasParam("Toughness")) { if (sa.hasParam("Toughness")) {
toughness = AbilityUtils.calculateAmount(source, sa.getParam("Toughness"), sa); toughness = AbilityUtils.calculateAmount(c, sa.getParam("Toughness"), sa);
} }
if (sa.hasParam("Keywords")) { if (sa.hasParam("Keywords")) {
for (String keyword : sa.getParam("Keywords").split(" & ")) { for (String keyword : sa.getParam("Keywords").split(" & ")) {
if (!source.hasKeyword(keyword)) { if (!c.hasKeyword(keyword)) {
bFlag = true; bFlag = true;
} }
} }

View File

@@ -2,7 +2,7 @@ Name:Azami, Lady of Scrolls
ManaCost:2 U U U ManaCost:2 U U U
Types:Legendary Creature Human Wizard Types:Legendary Creature Human Wizard
PT:0/2 PT:0/2
A:AB$ Draw | Cost$ tapXType<1/Wizard> | NumCards$ 1 | SpellDescription$ Draw a card. A:AB$ Draw | Cost$ tapXType<1/Wizard> | NumCards$ 1 | AILogic$ AlwaysAtOppEOT | SpellDescription$ Draw a card.
AI:RemoveDeck:Random AI:RemoveDeck:Random
DeckHints:Type$Wizard DeckHints:Type$Wizard
SVar:Picture:http://www.wizards.com/global/images/magic/general/azami_lady_of_scrolls.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/azami_lady_of_scrolls.jpg