Prevent losing all planeswalker abilities after one activation

This commit is contained in:
drdev
2014-10-13 03:28:30 +00:00
parent 498283f9b4
commit b663642d49
2 changed files with 4 additions and 4 deletions

View File

@@ -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());

View File

@@ -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());