mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fixed Disciple of Kangee.
This commit is contained in:
@@ -5372,8 +5372,10 @@ public class CardFactory_Creatures {
|
||||
CardList list = new CardList(AllZone.Computer_Play.getCards());
|
||||
list = list.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
return c.isCreature() && (!CardFactoryUtil.AI_doesCreatureAttack(c))
|
||||
&& (!c.getKeyword().contains("Flying")) && CardFactoryUtil.canTarget(card, c);
|
||||
return c.isCreature() &&
|
||||
(!CardFactoryUtil.AI_doesCreatureAttack(c)) &&
|
||||
(!c.getKeyword().contains("Flying")) &&
|
||||
CardFactoryUtil.canTarget(card, c);
|
||||
}
|
||||
});
|
||||
list.remove(card);
|
||||
@@ -5382,8 +5384,8 @@ public class CardFactory_Creatures {
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(AllZone.GameAction.isCardInPlay(getTargetCard())
|
||||
&& CardFactoryUtil.canTarget(card, getTargetCard())) {
|
||||
if (AllZone.GameAction.isCardInPlay(getTargetCard()) &&
|
||||
CardFactoryUtil.canTarget(card, getTargetCard())) {
|
||||
final Card[] creature = new Card[1];
|
||||
|
||||
creature[0] = getTargetCard();
|
||||
@@ -5406,7 +5408,7 @@ public class CardFactory_Creatures {
|
||||
public void execute() {
|
||||
if (AllZone.GameAction.isCardInPlay(creature[0])) {
|
||||
creature[0].removeExtrinsicKeyword("Flying");
|
||||
creature[0].removeIntrinsicKeyword(tgtName + " is blue.");
|
||||
creature[0].removeIntrinsicKeyword("CARDNAME is blue.");
|
||||
creature[0].setManaCost(origManaCost);
|
||||
for (int i = 0; i < 6; i++) {
|
||||
if (colorFlag[i]) {
|
||||
@@ -5423,7 +5425,7 @@ public class CardFactory_Creatures {
|
||||
}
|
||||
}
|
||||
creature[0].addExtrinsicKeyword("Flying");
|
||||
creature[0].addIntrinsicKeyword(tgtName + " is blue.");
|
||||
creature[0].addIntrinsicKeyword("CARDNAME is blue.");
|
||||
AllZone.EndOfTurn.addUntil(EOT);
|
||||
}//if (card is in play)
|
||||
}//resolve()
|
||||
|
||||
Reference in New Issue
Block a user