mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Snickering Squirrel - Improved choice dialog text.
This commit is contained in:
parent
f5f668e659
commit
832f1ebcd7
1 changed files with 6 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -55,11 +54,13 @@ class SnickeringSquirrelEffect extends ReplacementEffectImpl {
|
|||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
if (controller != null) {
|
||||
Player dieRoller = game.getPlayer(event.getPlayerId());
|
||||
if (controller != null && dieRoller != null) {
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
if (permanent != null && permanent.canTap() && !permanent.isTapped()) {
|
||||
if (controller.chooseUse(Outcome.AIDontUseIt, "Do you want to tap this to increase the result of a die any player rolled by 1?", null, "Yes", "No", source, game)) {
|
||||
if (permanent != null && !permanent.isTapped()) {
|
||||
if (controller.chooseUse(Outcome.AIDontUseIt, "Do you want to tap this to increase the result of a die ("
|
||||
+ event.getAmount() + ") "
|
||||
+ dieRoller.getName() + " rolled by 1?", null, "Yes", "No", source, game)) {
|
||||
permanent.tap(game);
|
||||
// ignore planar dies (dice roll amount of planar dies is equal to 0)
|
||||
if (event.getAmount() > 0) {
|
||||
|
|
Loading…
Reference in a new issue