mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
this is a big one - fixed modal targetting and refactored getText()
This commit is contained in:
parent
1b6e78c489
commit
84b9cbb16b
373 changed files with 912 additions and 1814 deletions
|
|
@ -54,6 +54,7 @@ public class CantTargetControlledEffect extends ReplacementEffectImpl<CantTarget
|
|||
super(duration, Outcome.Benefit);
|
||||
this.filterTarget = filterTarget;
|
||||
this.filterSource = filterSource;
|
||||
setText();
|
||||
}
|
||||
|
||||
public CantTargetControlledEffect(FilterPermanent filterTarget, Duration duration) {
|
||||
|
|
@ -102,8 +103,7 @@ public class CantTargetControlledEffect extends ReplacementEffectImpl<CantTarget
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Ability source) {
|
||||
private void setText() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(filterTarget.getMessage()).append(" can't be the targets of ");
|
||||
if (filterSource != null) {
|
||||
|
|
@ -113,7 +113,7 @@ public class CantTargetControlledEffect extends ReplacementEffectImpl<CantTarget
|
|||
sb.append("spells");
|
||||
}
|
||||
sb.append(" ").append(duration.toString());
|
||||
return sb.toString();
|
||||
staticText = sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue