removed check for creature.isTapped before calling MagicTapAction

master
melvin 2011-11-01 14:37:29 +08:00
parent 49213a7321
commit d94a66d871
9 changed files with 9 additions and 27 deletions

View File

@ -47,9 +47,7 @@ public class Air_Servant {
final Object[] choiceResults) {
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -49,9 +49,7 @@ public class Avacynian_Priest {
final Object[] choiceResults) {
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -101,9 +101,7 @@ public class Deathbringer_Liege {
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
event.processTargetPermanent(game,choiceResults,1,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -43,9 +43,7 @@ public class Gustcloak_Cavalier {
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
event.processTargetPermanent(game,choiceResults,1,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -49,9 +49,7 @@ public class Icy_Manipulator {
final Object[] choiceResults) {
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent permanent) {
if (!permanent.isTapped()) {
game.doAction(new MagicTapAction(permanent,true));
}
game.doAction(new MagicTapAction(permanent,true));
}
});
}

View File

@ -41,9 +41,7 @@ public class Kitsune_Dawnblade {
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
event.processTargetPermanent(game,choiceResults,1,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -43,9 +43,7 @@ public class Merfolk_Seastalkers {
public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] data,final Object[] choiceResults) {
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -37,9 +37,7 @@ public class Sidar_Jabari {
final Object[] choiceResults) {
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}

View File

@ -48,9 +48,7 @@ public class Stun_Sniper {
public void doAction(final MagicPermanent creature) {
final MagicDamage damage=new MagicDamage((MagicPermanent)data[0],creature,1,false);
game.doAction(new MagicDealDamageAction(damage));
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
game.doAction(new MagicTapAction(creature,true));
}
});
}