mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
fixed issue with copies and clones of tokens with abilities
This commit is contained in:
@@ -105,6 +105,8 @@ public class CopyPermanentEffect extends SpellEffect {
|
|||||||
|
|
||||||
copy.setBaseAttack(c.getBaseAttack());
|
copy.setBaseAttack(c.getBaseAttack());
|
||||||
copy.setBaseDefense(c.getBaseDefense());
|
copy.setBaseDefense(c.getBaseDefense());
|
||||||
|
|
||||||
|
CardFactoryUtil.addAbilityFactoryAbilities(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add keywords from sa
|
// add keywords from sa
|
||||||
|
|||||||
@@ -217,6 +217,8 @@ public class TokenEffect extends SpellEffect {
|
|||||||
for (final Card c : tokens) {
|
for (final Card c : tokens) {
|
||||||
final SpellAbility grantedAbility = af.getAbility(actualAbility, c);
|
final SpellAbility grantedAbility = af.getAbility(actualAbility, c);
|
||||||
c.addSpellAbility(grantedAbility);
|
c.addSpellAbility(grantedAbility);
|
||||||
|
// added ability to intrinsic list so copies and clones work
|
||||||
|
c.getIntrinsicAbilities().add(actualAbility);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user