forked from External/mage
Do this only once each turn - fixed wrong triggers after optional usage (example: Ondu Spiritdancer, see #11106) (#11107)
* Fix Ondu Spiritdancer. Closes #11106 * Add tests for "Do this only once each turn" * Add test for Ondu Spiritdancer
This commit is contained in:
parent
7b5139742f
commit
692c55e3e1
2 changed files with 131 additions and 4 deletions
|
|
@ -157,15 +157,15 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
return false;
|
||||
}
|
||||
}
|
||||
//20091005 - 603.4
|
||||
if (!super.resolve(game)) {
|
||||
return false;
|
||||
}
|
||||
if (doOnlyOnceEachTurn) {
|
||||
game.getState().setValue(CardUtil.getCardZoneString(
|
||||
"lastTurnUsed" + originalId, sourceId, game
|
||||
), game.getTurnNum());
|
||||
}
|
||||
//20091005 - 603.4
|
||||
if (!super.resolve(game)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue