forked from External/mage
parent
1a3d5923de
commit
7233061ae3
133 changed files with 590 additions and 676 deletions
|
|
@ -901,6 +901,16 @@ public final class CardUtil {
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
public static Outcome getBoostOutcome(DynamicValue power, DynamicValue toughness) {
|
||||
if (toughness.getSign() < 0) {
|
||||
return Outcome.Removal;
|
||||
}
|
||||
if (power.getSign() < 0) {
|
||||
return Outcome.UnboostCreature;
|
||||
}
|
||||
return Outcome.BoostCreature;
|
||||
}
|
||||
|
||||
public static boolean isSpliceAbility(Ability ability, Game game) {
|
||||
if (ability instanceof SpellAbility) {
|
||||
return ((SpellAbility) ability).getSpellAbilityType() == SpellAbilityType.SPLICE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue