- Added Helldozer, Shepherd of Rot, Nefashu, Keep Watch.

This commit is contained in:
jeffwadsworth 2013-01-03 15:34:42 -06:00
parent 4f0d071a9d
commit 658cbff736
10 changed files with 589 additions and 1 deletions

View file

@ -40,13 +40,21 @@ import mage.game.events.GameEvent.EventType;
* @author BetaSteward_at_googlemail.com
*/
public class AttacksTriggeredAbility extends TriggeredAbilityImpl<AttacksTriggeredAbility> {
protected String text;
public AttacksTriggeredAbility(Effect effect, boolean optional) {
super(Zone.BATTLEFIELD, effect, optional);
}
public AttacksTriggeredAbility(Effect effect, boolean optional, String text) {
super(Zone.BATTLEFIELD, effect, optional);
this.text = text;
}
public AttacksTriggeredAbility(final AttacksTriggeredAbility ability) {
super(ability);
this.text = ability.text;
}
@Override
@ -59,7 +67,10 @@ public class AttacksTriggeredAbility extends TriggeredAbilityImpl<AttacksTrigger
@Override
public String getRule() {
return "When {this} attacks, " + super.getRule();
if (text == null || text.isEmpty()) {
return "When {this} attacks, " + super.getRule();
}
return text;
}
@Override

View file

@ -43,16 +43,30 @@ import mage.players.Player;
public class LoseLifePlayersEffect extends OneShotEffect<LoseLifePlayersEffect> {
private DynamicValue amount;
String text;
public LoseLifePlayersEffect(int amount) {
super(Constants.Outcome.Damage);
this.amount = new StaticValue(amount);
staticText = "each player loses " + amount + " life";
}
public LoseLifePlayersEffect(DynamicValue amount) {
super(Constants.Outcome.Damage);
this.amount = amount;
staticText = "each player loses " + amount + " life";
}
public LoseLifePlayersEffect(DynamicValue amount, String text) {
super(Constants.Outcome.Damage);
this.amount = amount;
staticText = text;
}
public LoseLifePlayersEffect(final LoseLifePlayersEffect effect) {
super(effect);
this.amount = effect.amount;
this.text = effect.text;
}
@Override