mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Fix #8062
This commit is contained in:
parent
92cafbd8b1
commit
db3262aff6
2 changed files with 8 additions and 12 deletions
|
|
@ -139,7 +139,7 @@ public class ClashEffect extends OneShotEffect implements MageSingleton {
|
|||
game.informPlayer(controller, "You won the clash!");
|
||||
} else if (cmcController < cmcOpponent) {
|
||||
message.append(opponent.getLogName()).append(" won the clash");
|
||||
game.informPlayer(controller, opponent.getLogName() + " won the clash!");
|
||||
game.informPlayer(controller, opponent.getName() + " won the clash!");
|
||||
} else {
|
||||
message.append(" no winner ");
|
||||
}
|
||||
|
|
@ -177,11 +177,7 @@ public class ClashEffect extends OneShotEffect implements MageSingleton {
|
|||
));
|
||||
|
||||
// set opponent to DoIfClashWonEffect
|
||||
for (Effect effect : source.getEffects()) {
|
||||
if (effect instanceof DoIfClashWonEffect) {
|
||||
effect.setValue("clashOpponent", opponent);
|
||||
}
|
||||
}
|
||||
source.getEffects().setValue("clashOpponent", opponent);
|
||||
return cmcController > cmcOpponent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue