rewrote how coins are flipped

This commit is contained in:
Evan Kranzler 2019-01-15 15:56:40 -05:00
parent f5fffcf417
commit 535fe221e3
64 changed files with 157 additions and 86 deletions

View file

@ -60,7 +60,7 @@ public class FlipCoinEffect extends OneShotEffect {
MageObject mageObject = game.getObject(source.getSourceId());
if (controller != null && mageObject != null) {
boolean result = true;
for (Effect effect : controller.flipCoin(game, true) ? executingEffectsWon : executingEffectsLost) {
for (Effect effect : controller.flipCoin(source, game, true) ? executingEffectsWon : executingEffectsLost) {
effect.setTargetPointer(this.targetPointer);
if (effect instanceof OneShotEffect) {
result &= effect.apply(game, source);