mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Fixed Oath of Druids.
This commit is contained in:
@@ -1923,7 +1923,8 @@ public class Upkeep extends Phase {
|
|||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
private static void upkeepOathOfDruids() {
|
private static void upkeepOathOfDruids() {
|
||||||
final List<Card> oathList = CardLists.filter(Singletons.getModel().getGame().getCardsIn(ZoneType.Battlefield), CardPredicates.nameEquals("Oath of Druids"));
|
final List<Card> oathList = CardLists.filter(Singletons.getModel().getGame()
|
||||||
|
.getCardsIn(ZoneType.Battlefield), CardPredicates.nameEquals("Oath of Druids"));
|
||||||
if (oathList.isEmpty()) {
|
if (oathList.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1936,7 +1937,7 @@ public class Upkeep extends Phase {
|
|||||||
final Ability ability = new Ability(oath, "0") {
|
final Ability ability = new Ability(oath, "0") {
|
||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
final List<Card> libraryList = player.getCardsIn(ZoneType.Library);
|
final List<Card> libraryList = new ArrayList<Card>(player.getCardsIn(ZoneType.Library));
|
||||||
final PlayerZone battlefield = player.getZone(ZoneType.Battlefield);
|
final PlayerZone battlefield = player.getZone(ZoneType.Battlefield);
|
||||||
boolean oathFlag = true;
|
boolean oathFlag = true;
|
||||||
|
|
||||||
@@ -1966,9 +1967,7 @@ public class Upkeep extends Phase {
|
|||||||
|
|
||||||
if (oathFlag) {
|
if (oathFlag) {
|
||||||
final List<Card> cardsToReveal = new ArrayList<Card>();
|
final List<Card> cardsToReveal = new ArrayList<Card>();
|
||||||
final int max = libraryList.size();
|
for (final Card c : libraryList) {
|
||||||
for (int i = 0; i < max; i++) {
|
|
||||||
final Card c = libraryList.get(i);
|
|
||||||
cardsToReveal.add(c);
|
cardsToReveal.add(c);
|
||||||
if (c.isCreature()) {
|
if (c.isCreature()) {
|
||||||
Singletons.getModel().getGame().getAction().moveTo(battlefield, c);
|
Singletons.getModel().getGame().getAction().moveTo(battlefield, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user