forked from External/mage
Refactor: fixed getRules usage, clean SplitCard code
This commit is contained in:
parent
8f748b0f2c
commit
914cfc1d3a
9 changed files with 70 additions and 51 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue