forked from External/mage
Added Djinn Illuminatus.
This commit is contained in:
parent
0e4de763d8
commit
5a4c9b3a4c
5 changed files with 250 additions and 5 deletions
|
|
@ -192,9 +192,9 @@ class ReplicateTriggeredAbility extends TriggeredAbilityImpl {
|
|||
if (event.getSourceId().equals(this.sourceId)) {
|
||||
StackObject spell = game.getStack().getStackObject(this.sourceId);
|
||||
if (spell instanceof Spell) {
|
||||
Card card = game.getCard(spell.getSourceId());
|
||||
Card card = ((Spell) spell).getCard();
|
||||
if (card != null) {
|
||||
for (Ability ability : card.getAbilities()) {
|
||||
for (Ability ability : card.getAbilities(game)) {
|
||||
if (ability instanceof ReplicateAbility) {
|
||||
if (((ReplicateAbility) ability).isActivated()) {
|
||||
for (Effect effect : this.getEffects()) {
|
||||
|
|
@ -237,7 +237,7 @@ class ReplicateCopyEffect extends OneShotEffect {
|
|||
// reset replicate now so the copies don't report x times Replicate
|
||||
Card card = game.getCard(spell.getSourceId());
|
||||
if (card != null) {
|
||||
for (Ability ability : card.getAbilities()) {
|
||||
for (Ability ability : card.getAbilities(game)) {
|
||||
if (ability instanceof ReplicateAbility) {
|
||||
if (((ReplicateAbility) ability).isActivated()) {
|
||||
((ReplicateAbility) ability).resetReplicate();
|
||||
|
|
@ -253,7 +253,7 @@ class ReplicateCopyEffect extends OneShotEffect {
|
|||
game.getStack().push(copy);
|
||||
copy.chooseNewTargets(game, source.getControllerId());
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers(new StringBuilder(controller.getLogName()).append(copy.getActivatedMessage(game)).toString());
|
||||
game.informPlayers(controller.getLogName() + copy.getActivatedMessage(game));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue