mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
* Ninjutsu - Fixed that the selection of the unblocked attacker was not handled untargeted (so shroud on a creature did prevent to be able to select it).
This commit is contained in:
parent
c7edbbac5b
commit
28b575cf37
1 changed files with 37 additions and 39 deletions
|
@ -25,12 +25,9 @@
|
||||||
* authors and should not be interpreted as representing official policies, either expressed
|
* authors and should not be interpreted as representing official policies, either expressed
|
||||||
* or implied, of BetaSteward_at_googlemail.com.
|
* or implied, of BetaSteward_at_googlemail.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package mage.abilities.keyword;
|
package mage.abilities.keyword;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.constants.Zone;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.ActivatedAbilityImpl;
|
import mage.abilities.ActivatedAbilityImpl;
|
||||||
import mage.abilities.costs.Cost;
|
import mage.abilities.costs.Cost;
|
||||||
|
@ -41,6 +38,7 @@ import mage.cards.Card;
|
||||||
import mage.cards.Cards;
|
import mage.cards.Cards;
|
||||||
import mage.cards.CardsImpl;
|
import mage.cards.CardsImpl;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.predicate.permanent.UnblockedPredicate;
|
import mage.filter.predicate.permanent.UnblockedPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
@ -62,8 +60,8 @@ import mage.target.common.TargetControlledPermanent;
|
||||||
* announced until the ability leaves the stack.
|
* announced until the ability leaves the stack.
|
||||||
*
|
*
|
||||||
* 702.47c A ninjutsu ability may be activated only while a creature on the
|
* 702.47c A ninjutsu ability may be activated only while a creature on the
|
||||||
* battlefield is unblocked (see rule 509.1h). The creature with ninjutsu is
|
* battlefield is unblocked (see rule 509.1h). The creature with ninjutsu is put
|
||||||
* put onto the battlefield unblocked. It will be attacking the same player or
|
* onto the battlefield unblocked. It will be attacking the same player or
|
||||||
* planeswalker as the creature that was returned to its owner's hand.
|
* planeswalker as the creature that was returned to its owner's hand.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
@ -84,7 +82,7 @@ public class NinjutsuAbility extends ActivatedAbilityImpl {
|
||||||
public NinjutsuAbility(ManaCost manaCost) {
|
public NinjutsuAbility(ManaCost manaCost) {
|
||||||
super(Zone.HAND, new NinjutsuEffect(), manaCost);
|
super(Zone.HAND, new NinjutsuEffect(), manaCost);
|
||||||
this.addCost(new RevealNinjutsuCardCost());
|
this.addCost(new RevealNinjutsuCardCost());
|
||||||
this.addCost(new ReturnAttackerToHandTargetCost(new TargetControlledCreaturePermanent(1,1,filter,false)));
|
this.addCost(new ReturnAttackerToHandTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public NinjutsuAbility(NinjutsuAbility ability) {
|
public NinjutsuAbility(NinjutsuAbility ability) {
|
||||||
|
|
Loading…
Reference in a new issue