mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Removing unnecessary "HIDDEN" strings (WIP).
This commit is contained in:
@@ -231,14 +231,9 @@ public class CloneEffect extends SpellEffect {
|
|||||||
keywords.add("\"" + k + "\"");
|
keywords.add("\"" + k + "\"");
|
||||||
keywords.remove(k);
|
keywords.remove(k);
|
||||||
}
|
}
|
||||||
if (keywords.get(i).startsWith("HIDDEN")) {
|
|
||||||
tgtCard.addHiddenExtrinsicKeyword(keywords.get(i));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
tgtCard.addIntrinsicKeyword(keywords.get(i));
|
tgtCard.addIntrinsicKeyword(keywords.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// set power of clone
|
// set power of clone
|
||||||
if (sa.hasParam("IntoPlayTapped")) {
|
if (sa.hasParam("IntoPlayTapped")) {
|
||||||
|
|||||||
@@ -3180,13 +3180,8 @@ public class CardFactoryUtil {
|
|||||||
Card temp = CardFactoryUtil.copyStats(c);
|
Card temp = CardFactoryUtil.copyStats(c);
|
||||||
|
|
||||||
for (final String kw : intrinsicKeywords) {
|
for (final String kw : intrinsicKeywords) {
|
||||||
if (kw.startsWith("HIDDEN")) {
|
|
||||||
temp.addHiddenExtrinsicKeyword(kw);
|
|
||||||
// extrinsic keywords won't survive the copyStats treatment
|
|
||||||
} else {
|
|
||||||
temp.addIntrinsicKeyword(kw);
|
temp.addIntrinsicKeyword(kw);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
temp.setOwner(controller);
|
temp.setOwner(controller);
|
||||||
temp.setToken(true);
|
temp.setToken(true);
|
||||||
CardFactoryUtil.parseKeywords(temp, temp.getName());
|
CardFactoryUtil.parseKeywords(temp, temp.getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user