forked from External/mage
* Fixed a problem where for copies of cards/permanent the included spell ability was not correctly copied and the copied card had the spell ability twice. That could cause in some rare cases problems with spell ids of copies (this fixes #6824) or did allow on the other side some unproper handling of things (Animate Dead).
This commit is contained in:
parent
9f92377eef
commit
eecaa232f5
12 changed files with 300 additions and 149 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import mage.MageObjectReference;
|
||||
|
|
@ -102,9 +101,7 @@ public class MiracleAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getSourceId().equals(getSourceId())) {
|
||||
// Refer to the card at the zone it is now (hand)
|
||||
FixedTarget fixedTarget = new FixedTarget(event.getSourceId());
|
||||
fixedTarget.init(game, this);
|
||||
getEffects().get(0).setTargetPointer(fixedTarget);
|
||||
getEffects().setTargetPointer(new FixedTarget(game.getCard(event.getSourceId()), game));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue