mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Prevent losing all planeswalker abilities after one activation
This commit is contained in:
@@ -365,7 +365,7 @@ public class CardState {
|
||||
}
|
||||
|
||||
public final void copyFrom(final Card c, final CardState source) {
|
||||
// Makes a "deeper" copy of a CardCharacteristics object
|
||||
// Makes a "deeper" copy of a CardState object
|
||||
setName(source.getName());
|
||||
setType(source.type);
|
||||
setManaCost(source.getManaCost());
|
||||
|
||||
@@ -224,12 +224,12 @@ public final class CardUtil {
|
||||
newCopy.setType(new CardType(in.getType()));
|
||||
newCopy.setToken(in.isToken());
|
||||
newCopy.setTriggers(in.getTriggers(), false);
|
||||
for (SpellAbility sa : in.getManaAbilities()) {
|
||||
for (SpellAbility sa : in.getSpellAbilities()) {
|
||||
newCopy.addSpellAbility(sa);
|
||||
sa.setHostCard(in);
|
||||
}
|
||||
|
||||
// lock in the current P/T without boni from counters
|
||||
// lock in the current P/T without bonus from counters
|
||||
newCopy.setBaseAttack(in.getCurrentPower() + in.getTempAttackBoost() + in.getSemiPermanentAttackBoost());
|
||||
newCopy.setBaseDefense(in.getCurrentToughness() + in.getTempDefenseBoost() + in.getSemiPermanentDefenseBoost());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user