forked from External/mage
* Roi Elemental - Fixed triggered ability that did not work correctly for copied Roi Elementals (fixes #3214).
This commit is contained in:
parent
9ae0c31ee1
commit
795218b030
5 changed files with 102 additions and 23 deletions
|
|
@ -96,13 +96,13 @@ public class CipherEffect extends OneShotEffect {
|
|||
Card sourceCard = game.getCard(source.getSourceId());
|
||||
Permanent targetCreature = game.getPermanent(target.getFirstTarget());
|
||||
if (targetCreature != null && sourceCard != null) {
|
||||
String ruleText = new StringBuilder("you may cast a copy of ").append(sourceCard.getLogName()).append(" without paying its mana cost").toString();
|
||||
String ruleText = "you may cast a copy of " + sourceCard.getLogName() + " without paying its mana cost";
|
||||
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new CipherStoreEffect(source.getSourceId(), ruleText), true);
|
||||
ContinuousEffect effect = new GainAbilityTargetEffect(ability, Duration.Custom);
|
||||
effect.setTargetPointer(new FixedTarget(target.getFirstTarget()));
|
||||
game.addEffect(effect, source);
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers(new StringBuilder(sourceCard.getLogName()).append(": Spell ciphered to ").append(targetCreature.getLogName()).toString());
|
||||
game.informPlayers(sourceCard.getLogName() + ": Spell ciphered to " + targetCreature.getLogName());
|
||||
}
|
||||
return controller.moveCards(sourceCard, Zone.EXILED, source, game);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue