forked from External/mage
[EMN] Added the missing red cards (some untested).
This commit is contained in:
parent
7c0b11c641
commit
771f2c4fb9
34 changed files with 2312 additions and 51 deletions
|
|
@ -44,6 +44,7 @@ import mage.game.events.GameEvent;
|
|||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.stack.Spell;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.util.TargetAddress;
|
||||
|
||||
|
|
@ -97,8 +98,8 @@ class InkTreaderNephilimTriggeredAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
if (spell != null &&
|
||||
(spell.getCardType().contains(CardType.INSTANT) || spell.getCardType().contains(CardType.SORCERY))){
|
||||
if (spell != null
|
||||
&& (spell.getCardType().contains(CardType.INSTANT) || spell.getCardType().contains(CardType.SORCERY))) {
|
||||
for (Effect effect : getEffects()) {
|
||||
effect.setValue("triggeringSpell", spell);
|
||||
}
|
||||
|
|
@ -133,7 +134,6 @@ class InkTreaderNephilimTriggeredAbility extends TriggeredAbilityImpl {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
class InkTreaderNephilimEffect extends CopySpellForEachItCouldTargetEffect<Permanent> {
|
||||
|
||||
public InkTreaderNephilimEffect() {
|
||||
|
|
@ -148,6 +148,11 @@ class InkTreaderNephilimEffect extends CopySpellForEachItCouldTargetEffect<Perma
|
|||
super(filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Player getPlayer(Game game, Ability source) {
|
||||
return game.getPlayer(source.getControllerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Spell getSpell(Game game, Ability source) {
|
||||
return (Spell) getValue("triggeringSpell");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue