forked from External/mage
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:
parent
0f9e36ace0
commit
506e94d519
8 changed files with 156 additions and 37 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue