mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Some minor changes / fixes.
This commit is contained in:
parent
ebbbc1daf1
commit
ce3c26ab4b
3 changed files with 9 additions and 8 deletions
|
|
@ -19,17 +19,18 @@ public class DiesCreatureTriggeredAbility extends TriggeredAbilityImpl {
|
|||
private boolean setTargetPointer;
|
||||
|
||||
public DiesCreatureTriggeredAbility(Effect effect, boolean optional) {
|
||||
this(effect, optional, new FilterCreaturePermanent("a creature"));
|
||||
this(effect, optional, false);
|
||||
}
|
||||
|
||||
public DiesCreatureTriggeredAbility(Effect effect, boolean optional, boolean another) {
|
||||
this(effect, optional, new FilterCreaturePermanent(optional ? "another creature" : "a creature"));
|
||||
filter.add(new AnotherPredicate());
|
||||
this(effect, optional, another, false);
|
||||
}
|
||||
|
||||
public DiesCreatureTriggeredAbility(Effect effect, boolean optional, boolean another, boolean setTargetPointer) {
|
||||
this(effect, optional, new FilterCreaturePermanent(optional ? "another creature" : "a creature"));
|
||||
filter.add(new AnotherPredicate());
|
||||
this(effect, optional, new FilterCreaturePermanent(another ? "another creature" : "a creature"));
|
||||
if (another) {
|
||||
filter.add(new AnotherPredicate());
|
||||
}
|
||||
this.setTargetPointer = setTargetPointer;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package mage.abilities.costs.common;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -36,7 +35,7 @@ public class GainLifeOpponentCost extends CostImpl {
|
|||
|
||||
public GainLifeOpponentCost(int amount) {
|
||||
this.amount = amount;
|
||||
this.text = new StringBuilder("an opponent gains ").append(amount).append(" life").toString();
|
||||
this.text = "an opponent gains " + amount + " life";
|
||||
}
|
||||
|
||||
public GainLifeOpponentCost(GainLifeOpponentCost cost) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue