- non-card refactoring related to #8375

This commit is contained in:
Jeff Wadsworth 2021-10-18 14:02:57 -05:00
parent bcac7bd47c
commit 328b1f1eec
31 changed files with 32 additions and 34 deletions

View file

@ -74,7 +74,7 @@ public class CipherEffect extends OneShotEffect {
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()));
effect.setTargetPointer(new FixedTarget(target.getFirstTarget(), game));
game.addEffect(effect, source);
if (!game.isSimulation()) {
game.informPlayers(sourceCard.getLogName() + ": Spell ciphered to " + targetCreature.getLogName());