mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
enum conditions
This commit is contained in:
parent
40870f22c2
commit
ea6ba3c0a9
28 changed files with 57 additions and 46 deletions
|
|
@ -13,7 +13,9 @@ import mage.watchers.common.CastFromHandWatcher;
|
|||
*
|
||||
* @author Loki
|
||||
*/
|
||||
public class CastFromHandSourceCondition implements Condition {
|
||||
public enum CastFromHandSourceCondition implements Condition {
|
||||
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ import mage.players.Player;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
public class MoreCardsInHandThanOpponentsCondition implements Condition {
|
||||
public enum MoreCardsInHandThanOpponentsCondition implements Condition {
|
||||
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
|
|||
|
|
@ -28,21 +28,21 @@
|
|||
|
||||
package mage.abilities.condition.common;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author fireshoes
|
||||
*/
|
||||
|
||||
public class OpponentHasMoreLifeCondition implements Condition {
|
||||
public enum OpponentHasMoreLifeCondition implements Condition {
|
||||
|
||||
public OpponentHasMoreLifeCondition() {
|
||||
}
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue