mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed rule generation exception in SetCardColorSourceEffect
This commit is contained in:
parent
72de08ed39
commit
208224f0ae
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ public class SetCardColorSourceEffect extends ContinuousEffectImpl<SetCardColorS
|
|||
@Override
|
||||
public String getText(Mode mode) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("{this} ").append(mode.getTargets().get(0).getTargetName());
|
||||
sb.append("{this} ");
|
||||
if (mode.getTargets().size() > 0) {
|
||||
sb.append(mode.getTargets().get(0).getTargetName());
|
||||
}
|
||||
sb.append(" becomes ").append(setColor.getDescription());
|
||||
sb.append(" ").append(duration.toString());
|
||||
return sb.toString();
|
||||
|
|
Loading…
Reference in a new issue