mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Update HunterSliver.java
This commit is contained in:
parent
d791988130
commit
046059db5a
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,7 @@ import mage.abilities.effects.RequirementEffect;
|
||||||
import mage.abilities.effects.common.continious.GainAbilityAllEffect;
|
import mage.abilities.effects.common.continious.GainAbilityAllEffect;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -60,6 +61,7 @@ public class HunterSliver extends CardImpl<HunterSliver> {
|
||||||
|
|
||||||
// All Sliver creatures have provoke.
|
// All Sliver creatures have provoke.
|
||||||
Ability ability = new AttacksTriggeredAbility(new ProvokeEffect(), true, "may have target creature untap and block if able");
|
Ability ability = new AttacksTriggeredAbility(new ProvokeEffect(), true, "may have target creature untap and block if able");
|
||||||
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(ability, Duration.WhileOnBattlefield, new FilterCreaturePermanent("Sliver", "Sliver creatures"))));
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(ability, Duration.WhileOnBattlefield, new FilterCreaturePermanent("Sliver", "Sliver creatures"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +92,7 @@ class ProvokeEffect extends RequirementEffect<ProvokeEffect> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||||
if (permanent.getId().equals(source.getFirstTarget())) {
|
if (permanent.getId().equals(targetPointer.getFirst(game, source))) {
|
||||||
Permanent blocker = game.getPermanent(source.getFirstTarget());
|
Permanent blocker = game.getPermanent(source.getFirstTarget());
|
||||||
if (blocker != null && blocker.isTapped()){
|
if (blocker != null && blocker.isTapped()){
|
||||||
blocker.untap(game);
|
blocker.untap(game);
|
||||||
|
|
Loading…
Reference in a new issue