GUI: improved rendering of Adventure cards (#11764)

* GUI: Improved rendering of Adventure cards

---------

Co-authored-by: Matthew Wilson <matthew_w@vaadin.com>
This commit is contained in:
Matthew Wilson 2024-02-09 09:55:34 +02:00 committed by GitHub
parent 0f9e36ace0
commit 506e94d519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 156 additions and 37 deletions

View file

@ -9,6 +9,7 @@ import mage.constants.SpellAbilityType;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.ZoneChangeEvent;
import mage.util.CardUtil;
import java.util.List;
import java.util.UUID;
@ -129,6 +130,12 @@ public abstract class AdventureCard extends CardImpl {
return super.getAbilities(game);
}
public List<String> getSharedRules(Game game) {
// rules without spellcard
Abilities<Ability> sourceAbilities = this.getSharedAbilities(game);
return CardUtil.getCardRulesWithAdditionalInfo(game, this.getId(), this.getName(), sourceAbilities, sourceAbilities);
}
@Override
public void setOwnerId(UUID ownerId) {
super.setOwnerId(ownerId);