mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Bug Fix for Dauntless Escort
This commit is contained in:
@@ -5929,14 +5929,28 @@ public class CardFactory_Creatures {
|
||||
private static final long serialVersionUID = 2701248867610L;
|
||||
|
||||
public void execute() {
|
||||
if(card.getController() == "Human") Phase.Sac_Dauntless_Escort = false;
|
||||
else Phase.Sac_Dauntless_Escort_Comp = false;
|
||||
if(card.getController() == "Human") {
|
||||
Phase.Sac_Dauntless_Escort = false;
|
||||
} else {
|
||||
Phase.Sac_Dauntless_Escort_Comp = false;
|
||||
}
|
||||
PlayerZone PlayerPlayZone = AllZone.getZone(Constant.Zone.Play, card.getController());
|
||||
CardList PlayerCreatureList = new CardList(PlayerPlayZone.getCards());
|
||||
PlayerCreatureList = PlayerCreatureList.getType("Creature");
|
||||
if(PlayerCreatureList.size() != 0) {
|
||||
for(int i = 0; i < PlayerCreatureList.size(); i++) {
|
||||
Card c = PlayerCreatureList.get(i);
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@Override
|
||||
public void resolve() {
|
||||
AllZone.GameAction.sacrifice(card);
|
||||
if(card.getController() == "Human") Phase.Sac_Dauntless_Escort = true;
|
||||
if(card.getController() == "Human") {
|
||||
Phase.Sac_Dauntless_Escort = true;
|
||||
}
|
||||
else Phase.Sac_Dauntless_Escort_Comp = true;
|
||||
|
||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
||||
|
||||
@@ -12253,8 +12253,9 @@ public class GameActionUtil {
|
||||
|
||||
public static Command Dauntless_Escort = new Command() {
|
||||
private static final long serialVersionUID = -2201201455269804L;
|
||||
|
||||
CardList old = new CardList();
|
||||
public void execute() {
|
||||
|
||||
// Human Activates Dauntless Escort
|
||||
PlayerZone PlayerPlayZone = AllZone.getZone(Constant.Zone.Play,"Human");
|
||||
CardList PlayerCreatureList = new CardList(PlayerPlayZone.getCards());
|
||||
@@ -12274,18 +12275,22 @@ public class GameActionUtil {
|
||||
for(int i = 0; i < opponentCreatureList.size(); i++) {
|
||||
Card c = opponentCreatureList.get(i);
|
||||
if(c.getOwner() == "Human") {
|
||||
if(old.size() == 0) {
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
old.add(c);
|
||||
}
|
||||
for(int x = 0; x < old.size(); x++) {
|
||||
if(old.get(x) == c) break;
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
old.add(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(PlayerCreatureList.size() != 0) {
|
||||
for(int i = 0; i < PlayerCreatureList.size(); i++) {
|
||||
Card c = PlayerCreatureList.get(i);
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Computer Activates Dauntless Escort
|
||||
PlayerPlayZone = AllZone.getZone(Constant.Zone.Play,"Computer");
|
||||
PlayerCreatureList = new CardList(PlayerPlayZone.getCards());
|
||||
@@ -12302,20 +12307,21 @@ public class GameActionUtil {
|
||||
}
|
||||
}
|
||||
if(opponentCreatureList.size() != 0) {
|
||||
for(int i = 0; i < opponentCreatureList.size(); i++) {
|
||||
Card c = opponentCreatureList.get(i);
|
||||
if(c.getOwner() == "Computer") {
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(PlayerCreatureList.size() != 0) {
|
||||
for(int i = 0; i < PlayerCreatureList.size(); i++) {
|
||||
Card c = PlayerCreatureList.get(i);
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
}
|
||||
}
|
||||
for(int i = 0; i < opponentCreatureList.size(); i++) {
|
||||
Card c = opponentCreatureList.get(i);
|
||||
if(c.getOwner() == "Computer") {
|
||||
if(old.size() == 0) {
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
old.add(c);
|
||||
}
|
||||
for(int x = 0; x < old.size(); x++) {
|
||||
if(old.get(x) == c) break;
|
||||
c.removeExtrinsicKeyword("Indestructible");
|
||||
old.add(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}// execute()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user