Fixed a bug of CreateDelayedTriggeredAbilityEffect where the targetPointer wasn't copied correctly.

This commit is contained in:
LevelX2 2013-09-18 14:30:48 +02:00
parent eea4264e62
commit 1304069de3

View file

@ -72,8 +72,9 @@ public class CreateDelayedTriggeredAbilityEffect extends OneShotEffect<CreateDel
delayedAbility.setControllerId(source.getControllerId()); delayedAbility.setControllerId(source.getControllerId());
if (this.copyTargets) { if (this.copyTargets) {
delayedAbility.getTargets().addAll(source.getTargets()); delayedAbility.getTargets().addAll(source.getTargets());
for(Effect effect : ability.getEffects()) { for(Effect effect : delayedAbility.getEffects()) {
effect.setTargetPointer(targetPointer); effect.setTargetPointer(targetPointer);
effect.getTargetPointer().init(game, source);
} }
} }
game.addDelayedTriggeredAbility(delayedAbility); game.addDelayedTriggeredAbility(delayedAbility);