mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* Goblin Charbelcher - Fixed that the revealed land was taken into account to determine the damage to deal.
This commit is contained in:
parent
f953735263
commit
8bf35f88c8
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue