mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Merge branch 'assorted-fixes' into 'master'
Adding Rat Colony to card limit exceptions, fixing Goblin Chainwhirler. Closes #527 See merge request core-developers/forge!470
This commit is contained in:
@@ -2,6 +2,7 @@ Name:Goblin Chainwhirler
|
||||
ManaCost:R R R
|
||||
Types:Creature Goblin Warrior
|
||||
PT:3/3
|
||||
K:First Strike
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDamageAll | TriggerDescription$ When CARDNAME enters the battlefield, it deals 1 damage to each opponent and each creature and planeswalker they control.
|
||||
SVar:TrigDamageAll:DB$ DamageAll | ValidPlayers$ Player.Opponent | ValidCards$ Creature.OppCtrl,Planeswalker.OppCtrl | NumDmg$ 1 | ValidDescription$ each opponent and each creature and planeswalker they control.
|
||||
Oracle:First strike\nWhen Goblin Chainwhirler enters the battlefield, it deals 1 damage to each opponent and each creature and planeswalker they control.
|
||||
@@ -4,6 +4,7 @@ import com.google.common.base.Function;
|
||||
import forge.GuiBase;
|
||||
import forge.deck.CardPool;
|
||||
import forge.deck.Deck;
|
||||
import forge.deck.DeckFormat;
|
||||
import forge.deck.DeckSection;
|
||||
import forge.item.*;
|
||||
import forge.itemmanager.IItemManager;
|
||||
@@ -345,7 +346,7 @@ public class QuestSpellShop {
|
||||
PaperCard card = (PaperCard)item.getKey();
|
||||
int numToKeep = card.getRules().getType().isBasic() ?
|
||||
FModel.getQuestPreferences().getPrefInt(QPref.PLAYSET_BASIC_LAND_SIZE) : FModel.getQuestPreferences().getPrefInt(QPref.PLAYSET_SIZE);
|
||||
if (card.getName().equals("Relentless Rats") || card.getName().equals("Shadowborn Apostle")) {
|
||||
if (DeckFormat.getLimitExceptions().contains(card.getName())) {
|
||||
numToKeep = FModel.getQuestPreferences().getPrefInt(QPref.PLAYSET_ANY_NUMBER_SIZE);
|
||||
}
|
||||
if (numToKeep < item.getValue()) {
|
||||
|
||||
Reference in New Issue
Block a user