mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Clean up (#4295)
This commit is contained in:
@@ -1290,7 +1290,6 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
craft.setExiledBy(cause.getActivatingPlayer());
|
craft.setExiledBy(cause.getActivatingPlayer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final List<Integer> getStoredRolls() {
|
public final List<Integer> getStoredRolls() {
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sp.isManaAbility()) { // Mana Abilities go straight through
|
if (sp.isManaAbility()) { // Mana Abilities go straight through
|
||||||
if (!sp.isCopied()) {
|
if (!sp.isCopied() && !sp.isTrigger()) {
|
||||||
// Copied abilities aren't activated, so they shouldn't change these values
|
// Copied abilities aren't activated, so they shouldn't change these values
|
||||||
source.addAbilityActivated(sp);
|
source.addAbilityActivated(sp);
|
||||||
}
|
}
|
||||||
@@ -320,7 +320,7 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sp.isAbility() && !sp.isCopied()) {
|
if (sp.isAbility() && !sp.isCopied() && !sp.isTrigger()) {
|
||||||
source.addAbilityActivated(sp);
|
source.addAbilityActivated(sp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:River Herald Guide
|
|||||||
ManaCost:2 G
|
ManaCost:2 G
|
||||||
Types:Creature Merfolk Scout
|
Types:Creature Merfolk Scout
|
||||||
PT:3/1
|
PT:3/1
|
||||||
K:Viligance
|
K:Vigilance
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExplore | TriggerDescription$ When CARDNAME enters the battlefield, it explores. (Reveal the top card of your library. Put that card into your hand if it's a land. Otherwise, put a +1/+1 counter on this creature, then put the card back on top or into your graveyard.)
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExplore | TriggerDescription$ When CARDNAME enters the battlefield, it explores. (Reveal the top card of your library. Put that card into your hand if it's a land. Otherwise, put a +1/+1 counter on this creature, then put the card back on top or into your graveyard.)
|
||||||
SVar:TrigExplore:DB$ Explore
|
SVar:TrigExplore:DB$ Explore
|
||||||
DeckHas:Ability$Counters
|
DeckHas:Ability$Counters
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ public interface IGameController {
|
|||||||
|
|
||||||
void selectPlayer(PlayerView playerView, ITriggerEvent triggerEvent);
|
void selectPlayer(PlayerView playerView, ITriggerEvent triggerEvent);
|
||||||
|
|
||||||
boolean selectCard(CardView cardView,
|
boolean selectCard(CardView cardView, List<CardView> otherCardViewsToSelect, ITriggerEvent triggerEvent);
|
||||||
List<CardView> otherCardViewsToSelect, ITriggerEvent triggerEvent);
|
|
||||||
|
|
||||||
void selectAbility(SpellAbilityView sa);
|
void selectAbility(SpellAbilityView sa);
|
||||||
|
|
||||||
|
|||||||
@@ -413,7 +413,6 @@ public class HumanCostDecision extends CostDecisionMakerBase {
|
|||||||
final CardCollection exiled = new CardCollection();
|
final CardCollection exiled = new CardCollection();
|
||||||
final String required = sharedType ? " (must share a card type)" : "";
|
final String required = sharedType ? " (must share a card type)" : "";
|
||||||
|
|
||||||
|
|
||||||
final List<Card> chosen = controller.chooseCardsForZoneChange(ZoneType.Exile, origin, ability, typeList,
|
final List<Card> chosen = controller.chooseCardsForZoneChange(ZoneType.Exile, origin, ability, typeList,
|
||||||
mandatory ? nNeeded : 0, nNeeded, null, cost.toString(nNeeded) + required,
|
mandatory ? nNeeded : 0, nNeeded, null, cost.toString(nNeeded) + required,
|
||||||
null);
|
null);
|
||||||
|
|||||||
Reference in New Issue
Block a user