added UT, fix small bug on Hour of Revelation

This commit is contained in:
igoudt 2017-07-02 13:08:03 +02:00
parent 1f59818515
commit b573d72883
4 changed files with 102 additions and 2 deletions

View file

@ -27,7 +27,6 @@
*/
package mage.cards.h;
import java.util.UUID;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.effects.common.DestroyAllEffect;
@ -39,6 +38,8 @@ import mage.constants.ComparisonType;
import mage.constants.Zone;
import mage.filter.common.FilterNonlandPermanent;
import java.util.UUID;
/**
*
* @author fireshoes
@ -51,7 +52,7 @@ public class HourOfRevelation extends CardImpl {
// Hour of Revelation costs {3} less to cast if there are ten or more nonland permanents on the battlefield.
SimpleStaticAbility ability = new SimpleStaticAbility(Zone.STACK,
new SpellCostReductionSourceEffect(3, new PermanentsOnTheBattlefieldCondition(
new FilterNonlandPermanent("there are ten or more nonland permanents on the battlefield"), ComparisonType.MORE_THAN, 9)));
new FilterNonlandPermanent("there are ten or more nonland permanents on the battlefield"), ComparisonType.MORE_THAN, 9, false)));
ability.setRuleAtTheTop(true);
this.addAbility(ability);