- Various little tweaks.

This commit is contained in:
Sloth
2012-08-02 08:34:50 +00:00
parent e7a79fe6b3
commit 12a118030e
5 changed files with 5 additions and 9 deletions

View File

@@ -561,8 +561,8 @@ public class AbilityFactoryPump {
// will the creature attack (only relevant for sorcery speed)?
if (phase.getPhase().isBefore(PhaseType.COMBAT_DECLARE_ATTACKERS)
&& phase.isPlayerTurn(AllZone.getComputerPlayer())
&& CardFactoryUtil.doesCreatureAttackAI(c)
&& attack > 0) {
&& attack > 0
&& CardFactoryUtil.doesCreatureAttackAI(c)) {
return true;
}

View File

@@ -1427,7 +1427,6 @@ public class CardFactoryCreatures {
sb.append("any number of creatures with total power 12 or greater.");
sacOrSac.setStackDescription(sb.toString());
AllZone.getStack().addSimultaneousStackEntry(sacOrSac);
}
};

View File

@@ -364,13 +364,8 @@ public class CardFactoryUtil {
*/
public static boolean doesCreatureAttackAI(final Card card) {
final List<Card> att = ComputerUtil.getAttackers().getAttackers();
for (final Card element : att) {
if (element.equals(card)) {
return true;
}
}
return false;
return att.contains(card);
}
/**