mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
- Added Helldozer, Shepherd of Rot, Nefashu, Keep Watch.
This commit is contained in:
parent
4f0d071a9d
commit
658cbff736
10 changed files with 589 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue