mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implemented Heat Stroke
This commit is contained in:
parent
3b82e3c2bf
commit
8aee5d795c
1 changed files with 26 additions and 2 deletions
|
@ -28,21 +28,45 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EndOfCombatTriggeredAbility;
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.permanent.BlockedPredicate;
|
||||
import mage.filter.predicate.permanent.BlockingPredicate;
|
||||
import mage.watchers.common.BlockedThisTurnWatcher;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author dustinroepsch
|
||||
*/
|
||||
public class HeatStroke extends CardImpl {
|
||||
private static final FilterPermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
new BlockedPredicate(), new BlockingPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public HeatStroke(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
|
||||
|
||||
|
||||
|
||||
// At end of combat, destroy each creature that blocked or was blocked this turn.
|
||||
this.addAbility(
|
||||
new EndOfCombatTriggeredAbility(
|
||||
new DestroyAllEffect(filter),
|
||||
false
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public HeatStroke(final HeatStroke card) {
|
||||
|
|
Loading…
Reference in a new issue