forked from External/mage
refactor: use copy() for targetPointer (#11751)
This commit is contained in:
parent
da2466d87d
commit
6cf05a554c
42 changed files with 52 additions and 55 deletions
|
|
@ -60,7 +60,7 @@ public class DoWhenCostPaid extends OneShotEffect {
|
|||
int bookmark = game.bookmarkState();
|
||||
if (cost.pay(source, game, source, player.getId(), false)) {
|
||||
if (ability.getTargets().isEmpty()) {
|
||||
ability.getEffects().setTargetPointer(getTargetPointer());
|
||||
ability.getEffects().setTargetPointer(this.getTargetPointer().copy());
|
||||
}
|
||||
game.fireReflexiveTriggeredAbility(ability, source);
|
||||
player.resetStoredBookmark(game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue