mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Various little tweaks.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user