mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fixed Morph costs not being displayed on the cards.
- Little name change in ComputerUtil.
This commit is contained in:
@@ -3,7 +3,8 @@ ManaCost:1 R
|
||||
Types:Instant
|
||||
Text:no text
|
||||
A:SP$ SetState | Cost$ 1 R | ValidTgts$ Creature.faceDown+YouDontCtrl | TgtPrompt$ Select target facedown creature you don't control. | Mode$ TurnFace | SpellDescription$ Turn target face-down creature an opponent controls face up.
|
||||
SVar:Rarity:Rare
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/break_open.jpg
|
||||
SetInfo:ONS|Common|http://magiccards.info/scans/en/on/190.jpg
|
||||
Oracle:Turn target face-down creature an opponent controls face up.
|
||||
|
||||
@@ -2152,7 +2152,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
|| keyword.get(i).startsWith("Echo") || keyword.get(i).startsWith("Fading")
|
||||
|| keyword.get(i).startsWith("Ripple") || keyword.get(i).startsWith("Unearth")
|
||||
|| keyword.get(i).startsWith("Vanishing") || keyword.get(i).startsWith("Madness")
|
||||
|| keyword.get(i).startsWith("Devour")) {
|
||||
|| keyword.get(i).startsWith("Devour") || keyword.get(i).startsWith("Morph")) {
|
||||
String k = keyword.get(i);
|
||||
k = k.replace(":", " ");
|
||||
sbLong.append(k).append("\r\n");
|
||||
|
||||
@@ -73,7 +73,7 @@ public class ComputerAIGeneral implements Computer {
|
||||
private void playCards(final String phase) {
|
||||
final SpellAbility[] sp = phase.equals(Constant.Phase.MAIN1) ? this.getMain1() : this.getMain2();
|
||||
|
||||
final boolean nextPhase = ComputerUtil.playAbilities(sp);
|
||||
final boolean nextPhase = ComputerUtil.playSpellAbilities(sp);
|
||||
|
||||
if (nextPhase) {
|
||||
AllZone.getPhase().passPriority();
|
||||
@@ -519,7 +519,7 @@ public class ComputerAIGeneral implements Computer {
|
||||
boolean pass = (sas.length == 0)
|
||||
|| AllZone.getPhase().is(Constant.Phase.END_OF_TURN, AllZone.getComputerPlayer());
|
||||
if (!pass) { // Each AF should check the phase individually
|
||||
pass = ComputerUtil.playAbilities(sas);
|
||||
pass = ComputerUtil.playSpellAbilities(sas);
|
||||
}
|
||||
|
||||
if (pass) {
|
||||
@@ -556,7 +556,7 @@ public class ComputerAIGeneral implements Computer {
|
||||
|
||||
if (sas.length > 0) {
|
||||
// Spell not Countered
|
||||
if (!ComputerUtil.playAbilities(sas)) {
|
||||
if (!ComputerUtil.playSpellAbilities(sas)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ComputerUtil {
|
||||
* objects.
|
||||
* @return a boolean.
|
||||
*/
|
||||
public static boolean playAbilities(final SpellAbility[] all) {
|
||||
public static boolean playSpellAbilities(final SpellAbility[] all) {
|
||||
// not sure "playing biggest spell" matters?
|
||||
ComputerUtil.sortSpellAbilityByCost(all);
|
||||
// MyRandom.shuffle(all);
|
||||
@@ -102,7 +102,7 @@ public class ComputerUtil {
|
||||
for (int i = 0; i < sas.length; i++) {
|
||||
sas[i] = all.get(i);
|
||||
}
|
||||
return ComputerUtil.playAbilities(sas);
|
||||
return ComputerUtil.playSpellAbilities(sas);
|
||||
} // playCards()
|
||||
|
||||
/**
|
||||
|
||||
@@ -5050,7 +5050,6 @@ public class CardFactoryUtil {
|
||||
card.setPrevType(card.getType());
|
||||
|
||||
final String parse = card.getKeyword().get(n).toString();
|
||||
card.removeIntrinsicKeyword(parse);
|
||||
card.setCanMorph(true);
|
||||
|
||||
final String[] k = parse.split(":");
|
||||
|
||||
Reference in New Issue
Block a user