forked from External/mage
Fixed Chandra Nalaar second ability dealing no damage because of loyalty variable cost.
Fixed DamageAllControlledTargetEffect static text generating.
This commit is contained in:
parent
2e525da50f
commit
a6258cfc7e
2 changed files with 49 additions and 7 deletions
|
|
@ -49,8 +49,7 @@ public class DamageAllControlledTargetEffect extends OneShotEffect<DamageAllCont
|
|||
super(Outcome.Damage);
|
||||
this.amount = amount;
|
||||
this.filter = filter;
|
||||
String message = "'{'source'}' deals {1} damage to each {2} controlled by target player";
|
||||
staticText = MessageFormat.format(message, Integer.toString(amount), filter.getMessage());
|
||||
getText();
|
||||
}
|
||||
|
||||
public DamageAllControlledTargetEffect(final DamageAllControlledTargetEffect effect) {
|
||||
|
|
@ -72,4 +71,9 @@ public class DamageAllControlledTargetEffect extends OneShotEffect<DamageAllCont
|
|||
return true;
|
||||
}
|
||||
|
||||
private void getText() {
|
||||
StringBuilder sb = new StringBuilder("{this} deals ");
|
||||
sb.append(amount).append(" damage to each ").append(filter.getMessage()).append(" controlled by target player");
|
||||
staticText = sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue