Tokens and command objects reworked (part 2 of 2, tokens/emblems)

This commit is contained in:
Oleg Agafonov 2023-05-08 02:18:42 +04:00
parent 5f55c7c667
commit f2d93f224f
591 changed files with 1368 additions and 4425 deletions

View file

@ -31,6 +31,7 @@ import java.util.UUID;
* @author TheElk801
*/
public final class TheRingEmblem extends Emblem {
private static final FilterPermanent filter = new FilterControlledPermanent("your Ring-bearer");
static {
@ -38,12 +39,19 @@ public final class TheRingEmblem extends Emblem {
}
public TheRingEmblem(UUID controllerId) {
super();
this.setName("The Ring");
this.setExpansionSetCodeForImage("LTR");
super("The Ring");
this.setControllerId(controllerId);
}
private TheRingEmblem(final TheRingEmblem card) {
super(card);
}
@Override
public TheRingEmblem copy() {
return new TheRingEmblem(this);
}
public void addNextAbility(Game game) {
Ability ability;
switch (TemptedByTheRingWatcher.getCount(this.getControllerId(), game)) {