Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create MagicManifestCardAction that always uses MagicPlayCardEvent.cr…
…eate() for the card event, fixed issue #107
- Loading branch information
1 parent
a1e5653
commit 4522d1d
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
package magic.model.action; | ||
|
||
import magic.model.MagicCard; | ||
import magic.model.MagicGame; | ||
import magic.model.MagicPermanent; | ||
import magic.model.MagicPlayer; | ||
import magic.model.MagicPayedCost; | ||
import magic.model.event.MagicPlayCardEvent; | ||
import magic.model.stack.MagicCardOnStack; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class MagicManifestCardAction extends MagicPlayCardAction { | ||
|
||
public MagicManifestCardAction(final MagicCard card, final MagicPlayer player) { | ||
super(card, player, MagicPlayMod.MANIFEST); | ||
} | ||
|
||
@Override | ||
public void doAction(final MagicGame game) { | ||
final MagicCardOnStack cardOnStack = new MagicCardOnStack( | ||
card, | ||
card, | ||
controller, | ||
MagicPlayCardEvent.create(), | ||
MagicPayedCost.NOT_SPELL, | ||
modifications | ||
); | ||
game.addEvent(cardOnStack.getEvent()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters