forked from External/mage
[SOI] Fixed to Skulk and Investigate. Some minor tweaks to SOI cards.
This commit is contained in:
parent
2a92f5e77a
commit
60bc03e284
10 changed files with 44 additions and 88 deletions
|
|
@ -38,14 +38,14 @@ import mage.players.Player;
|
|||
/**
|
||||
*
|
||||
*
|
||||
* @author fireshoes
|
||||
* @author fireshoes
|
||||
*/
|
||||
public class DeliriumCondition implements Condition {
|
||||
|
||||
private static DeliriumCondition fInstance = new DeliriumCondition();
|
||||
private final static DeliriumCondition INSTANCE = new DeliriumCondition();
|
||||
|
||||
public static Condition getInstance() {
|
||||
return fInstance;
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -9,22 +9,20 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.Token;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class InvestigateEffect extends OneShotEffect {
|
||||
public class InvestigateEffect extends CreateTokenEffect {
|
||||
|
||||
public InvestigateEffect() {
|
||||
super(Outcome.PutCreatureInPlay);
|
||||
super(new ClueArtifactToken());
|
||||
this.staticText = "Investigate. <i>(Put a colorless Clue artifact token onto the battlefield with \"{2}, Sacrifice this artifact: Draw a card.\")</i>";
|
||||
}
|
||||
|
||||
|
|
@ -37,10 +35,6 @@ public class InvestigateEffect extends OneShotEffect {
|
|||
return new InvestigateEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
class ClueArtifactToken extends Token {
|
||||
|
|
|
|||
|
|
@ -52,13 +52,12 @@ class SkulkEffect extends RestrictionEffect {
|
|||
|
||||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
return !permanent.getControllerId().equals(source.getControllerId());
|
||||
return permanent.getId().equals(source.getSourceId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
||||
return blocker.getId().equals(source.getSourceId())
|
||||
&& blocker.getPower().getValue() >= attacker.getPower().getValue();
|
||||
return blocker.getPower().getValue() <= attacker.getPower().getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue