mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- FRF: Added Soulflayer
This commit is contained in:
@@ -258,6 +258,7 @@ public class GameAction {
|
|||||||
if (!c.isToken() && !toBattlefield) {
|
if (!c.isToken() && !toBattlefield) {
|
||||||
copied.getCurrentState().resetCardColor();
|
copied.getCurrentState().resetCardColor();
|
||||||
copied.clearDevoured();
|
copied.clearDevoured();
|
||||||
|
copied.clearDelved();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromBattlefield) {
|
if (fromBattlefield) {
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
private final CopyOnWriteArrayList<String> hiddenExtrinsicKeyword = new CopyOnWriteArrayList<String>();
|
private final CopyOnWriteArrayList<String> hiddenExtrinsicKeyword = new CopyOnWriteArrayList<String>();
|
||||||
|
|
||||||
// cards attached or otherwise linked to this card
|
// cards attached or otherwise linked to this card
|
||||||
private CardCollection equippedBy, fortifiedBy, hauntedBy, devouredCards, imprintedCards, encodedCards;
|
private CardCollection equippedBy, fortifiedBy, hauntedBy, devouredCards, delvedCards, imprintedCards, encodedCards;
|
||||||
private CardCollection mustBlockCards, clones, gainControlTargets, chosenCards, blockedThisTurn, blockedByThisTurn;
|
private CardCollection mustBlockCards, clones, gainControlTargets, chosenCards, blockedThisTurn, blockedByThisTurn;
|
||||||
|
|
||||||
// if this card is attached or linked to something, what card is it currently attached to
|
// if this card is attached or linked to something, what card is it currently attached to
|
||||||
@@ -491,10 +491,25 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
}
|
}
|
||||||
devouredCards.add(c);
|
devouredCards.add(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void clearDevoured() {
|
public final void clearDevoured() {
|
||||||
devouredCards = null;
|
devouredCards = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final CardCollectionView getDelved() {
|
||||||
|
return CardCollection.getView(delvedCards);
|
||||||
|
}
|
||||||
|
public final void addDelved(final Card c) {
|
||||||
|
if (delvedCards == null) {
|
||||||
|
delvedCards = new CardCollection();
|
||||||
|
}
|
||||||
|
delvedCards.add(c);
|
||||||
|
}
|
||||||
|
|
||||||
|
public final void clearDelved() {
|
||||||
|
delvedCards = null;
|
||||||
|
}
|
||||||
|
|
||||||
public MapOfLists<GameEntity, Object> getRememberMap() {
|
public MapOfLists<GameEntity, Object> getRememberMap() {
|
||||||
return rememberMap;
|
return rememberMap;
|
||||||
}
|
}
|
||||||
@@ -4644,7 +4659,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
|| !(getCounters(CounterType.getType("TIME")) >= 1)) {
|
|| !(getCounters(CounterType.getType("TIME")) >= 1)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} else if (property.startsWith("delved")) {
|
||||||
|
if (!source.getDelved().contains(this)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else if (property.startsWith("power") || property.startsWith("toughness")
|
} else if (property.startsWith("power") || property.startsWith("toughness")
|
||||||
|| property.startsWith("cmc") || property.startsWith("totalPT")) {
|
|| property.startsWith("cmc") || property.startsWith("totalPT")) {
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ public class ManaCostAdjustment {
|
|||||||
for (final Card c : toExile) {
|
for (final Card c : toExile) {
|
||||||
cost.decreaseColorlessMana(1);
|
cost.decreaseColorlessMana(1);
|
||||||
if (!test) {
|
if (!test) {
|
||||||
|
sa.getHostCard().addDelved(c);
|
||||||
pc.getGame().getAction().exile(c);
|
pc.getGame().getAction().exile(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user