Refactor: fixed getRules usage, clean SplitCard code

This commit is contained in:
Oleg Agafonov 2023-04-08 19:01:04 +04:00
parent 8f748b0f2c
commit 914cfc1d3a
9 changed files with 70 additions and 51 deletions

View file

@ -263,13 +263,13 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public List<String> getRules(Game game) {
try {
List<String> rules = getRules();
List<String> rules = super.getRules(game);
// add additional data for GUI
// info
if (info != null) {
for (String data : info.values()) {
rules.add(data);
}
rules.addAll(info.values());
}
// ability hints