Skip to content

Set spawning ability on Endure tokens#11189

Open
delebedev wants to merge 1 commit into
Card-Forge:masterfrom
delebedev:fix/endure-token-spawning-ability
Open

Set spawning ability on Endure tokens#11189
delebedev wants to merge 1 commit into
Card-Forge:masterfrom
delebedev:fix/endure-token-spawning-ability

Conversation

@delebedev

Copy link
Copy Markdown
Contributor

Endure builds its Spirit token directly:

Card result = TokenInfo.getProtoType(...);
result.setBasePower(amount);
result.setBaseToughness(amount);

Other direct token creation paths preserve the source spell ability on the created token:

result.setTokenSpawningAbility(sa);

Examples:

This makes Endure-created tokens carry the same source ability metadata as those paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants