forked from External/mage
41 lines
858 B
Java
41 lines
858 B
Java
package mage.abilities.common;
|
|
|
|
import mage.abilities.ActivatedAbilityImpl;
|
|
import mage.abilities.effects.common.PassEffect;
|
|
import mage.constants.Zone;
|
|
import mage.game.Game;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* AI only: fake ability for game simulations
|
|
*
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class PassAbility extends ActivatedAbilityImpl {
|
|
|
|
public PassAbility() {
|
|
super(Zone.ALL, new PassEffect());
|
|
this.usesStack = false;
|
|
}
|
|
|
|
public PassAbility(final PassAbility ability) {
|
|
super(ability);
|
|
}
|
|
|
|
@Override
|
|
public PassAbility copy() {
|
|
return new PassAbility(this);
|
|
}
|
|
|
|
@Override
|
|
public ActivationStatus canActivate(UUID playerId, Game game) {
|
|
return ActivationStatus.getTrue(this, game);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Pass";
|
|
}
|
|
|
|
}
|