mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed a bug of CreateDelayedTriggeredAbilityEffect where the targetPointer wasn't copied correctly.
This commit is contained in:
parent
eea4264e62
commit
1304069de3
1 changed files with 2 additions and 1 deletions
|
@ -72,8 +72,9 @@ public class CreateDelayedTriggeredAbilityEffect extends OneShotEffect<CreateDel
|
|||
delayedAbility.setControllerId(source.getControllerId());
|
||||
if (this.copyTargets) {
|
||||
delayedAbility.getTargets().addAll(source.getTargets());
|
||||
for(Effect effect : ability.getEffects()) {
|
||||
for(Effect effect : delayedAbility.getEffects()) {
|
||||
effect.setTargetPointer(targetPointer);
|
||||
effect.getTargetPointer().init(game, source);
|
||||
}
|
||||
}
|
||||
game.addDelayedTriggeredAbility(delayedAbility);
|
||||
|
|
Loading…
Reference in a new issue