forked from External/mage
singleton conditions to enum
This commit is contained in:
parent
809c8c97c9
commit
fb9d713287
82 changed files with 196 additions and 242 deletions
|
|
@ -27,24 +27,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.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Describes condition when creature is equipped.
|
||||
*
|
||||
* @author nantuko
|
||||
*/
|
||||
public class EquippedSourceCondition implements Condition {
|
||||
public enum EquippedSourceCondition implements Condition {
|
||||
|
||||
private static final EquippedSourceCondition instance = new EquippedSourceCondition();
|
||||
|
||||
public static Condition getInstance() {
|
||||
return instance;
|
||||
}
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue