refactor: improved Manifest effects to use shared code, added docs, todos and tests for all simple usages (part of #11873)

This commit is contained in:
Oleg Agafonov 2024-03-02 12:01:05 +04:00
parent 5c07b2e422
commit 00c3efedcf
6 changed files with 208 additions and 146 deletions

View file

@ -791,14 +791,12 @@ public class Spell extends StackObjectImpl implements Card {
@Override
public boolean turnFaceUp(Ability source, Game game, UUID playerId) {
setFaceDown(false, game);
return true;
throw new IllegalStateException("Spells un-support turn face up commands");
}
@Override
public boolean turnFaceDown(Ability source, Game game, UUID playerId) {
setFaceDown(true, game);
return true;
throw new IllegalStateException("Spells un-support turn face up commands");
}
@Override