mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Fixed Issue 368.
This commit is contained in:
parent
dc1725ce63
commit
226262305e
1 changed files with 11 additions and 1 deletions
|
@ -37,6 +37,7 @@ import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
import mage.abilities.effects.RestrictionEffect;
|
||||||
import mage.abilities.effects.common.CantBlockSourceEffect;
|
import mage.abilities.effects.common.CantBlockSourceEffect;
|
||||||
import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect;
|
import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect;
|
||||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||||
|
@ -48,6 +49,7 @@ import mage.game.permanent.Permanent;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Alvin
|
* @author Alvin
|
||||||
|
* @author ayratn
|
||||||
*/
|
*/
|
||||||
public class StromkirkNoble extends CardImpl<StromkirkNoble> {
|
public class StromkirkNoble extends CardImpl<StromkirkNoble> {
|
||||||
|
|
||||||
|
@ -77,7 +79,7 @@ public class StromkirkNoble extends CardImpl<StromkirkNoble> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class StromkirkEffect extends CantBlockSourceEffect {
|
class StromkirkEffect extends RestrictionEffect<StromkirkEffect> {
|
||||||
|
|
||||||
public StromkirkEffect() {
|
public StromkirkEffect() {
|
||||||
super(Duration.WhileOnBattlefield);
|
super(Duration.WhileOnBattlefield);
|
||||||
|
@ -87,6 +89,14 @@ class StromkirkEffect extends CantBlockSourceEffect {
|
||||||
super(effect);
|
super(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||||
|
if (permanent.getId().equals(source.getSourceId())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
||||||
return !blocker.hasSubtype("Human");
|
return !blocker.hasSubtype("Human");
|
||||||
|
|
Loading…
Reference in a new issue