mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
[Simulated AI] Fix copying tokens with abilities, like Eldrazi Scions.
Also fixes a bug in the main game code where if you have Clone try to copy a token with abilities, like an Eldrazi Scion, it would previously not get those abilities. Adds a test for the game simulation/copy case.
This commit is contained in:
@@ -291,6 +291,8 @@ public class TokenEffect extends SpellAbilityEffect {
|
||||
final String actualAbility = AbilityUtils.getSVar(root, s);
|
||||
for (final Card c : tokens) {
|
||||
final SpellAbility grantedAbility = AbilityFactory.getAbility(actualAbility, c);
|
||||
// Set intrinsic, so that effects like Clone will copy these.
|
||||
grantedAbility.setIntrinsic(true);
|
||||
c.addSpellAbility(grantedAbility);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user