[NEW] Added Exhaustion, Sudden Impact, Petrified Field, Spiraling Embers, Ebony Owl Netsuke, Martyr of Spores, Martyr of Bones, Martyr of Frost and Martyr of Ashes.

+ updated Martyr of Sands with new dynamic cost.
This commit is contained in:
emerald000 2014-07-18 08:24:03 -04:00
parent 40804d5265
commit c185b2e1c7
21 changed files with 1513 additions and 53 deletions

View file

@ -0,0 +1,46 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mage.abilities.dynamicvalue.common;
import mage.abilities.Ability;
import mage.abilities.costs.Cost;
import mage.abilities.costs.common.RevealTargetFromHandCost;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.game.Game;
/**
*
* @author emerald000
*/
public class RevealTargetFromHandCostCount implements DynamicValue {
@Override
public int calculate(Game game, Ability sourceAbility) {
for (Cost cost: sourceAbility.getCosts()) {
if (cost instanceof RevealTargetFromHandCost) {
return ((RevealTargetFromHandCost) cost).getNumberRevealedCards();
}
}
return 0;
}
@Override
public String getMessage() {
return "number of revealed cards";
}
@Override
public DynamicValue copy() {
return new RevealTargetFromHandCostCount();
}
@Override
public String toString() {
return "X";
}
}