mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
getCloneStates: copying a non Creature can't set PT
This commit is contained in:
@@ -681,13 +681,16 @@ public class CardFactory {
|
||||
state.removeIntrinsicKeyword(kw);
|
||||
}
|
||||
|
||||
if (sa.hasParam("SetPower")) {
|
||||
state.setBasePower(AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("SetPower"), sa));
|
||||
if (state.getType().isCreature()) {
|
||||
if (sa.hasParam("SetPower")) {
|
||||
state.setBasePower(AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("SetPower"), sa));
|
||||
}
|
||||
if (sa.hasParam("SetToughness")) {
|
||||
state.setBaseToughness(AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("SetToughness"), sa));
|
||||
}
|
||||
}
|
||||
if (sa.hasParam("SetToughness")) {
|
||||
state.setBaseToughness(AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("SetToughness"), sa));
|
||||
}
|
||||
if (sa.hasParam("SetLoyalty")) {
|
||||
|
||||
if (state.getType().isPlaneswalker() && sa.hasParam("SetLoyalty")) {
|
||||
state.setBaseLoyalty(String.valueOf(sa.getParam("SetLoyalty")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user