* Goblin Charbelcher - Fixed that the revealed land was taken into account to determine the damage to deal.

This commit is contained in:
LevelX2 2015-02-21 17:57:15 +01:00
parent f953735263
commit 8bf35f88c8

View file

@ -99,11 +99,13 @@ class GoblinCharbelcherEffect extends OneShotEffect {
return false;
}
Cards cards = new CardsImpl();
boolean landFound = false;
while (controller.getLibrary().size() > 0) {
Card card = controller.getLibrary().removeFromTop(game);
if (card != null) {
cards.add(card);
if (card.getCardType().contains(CardType.LAND)){
landFound = true;
if(card.getSubtype().contains("Mountain")){
isMountain = true;
}
@ -113,8 +115,12 @@ class GoblinCharbelcherEffect extends OneShotEffect {
break;
}
}
controller.revealCards(sourceObject.getLogName(), cards, game);
int damage = cards.size();
if (landFound) {
damage--;
}
if(isMountain == true){
damage *= 2;
}