Added rule parameter to GainAbilityAttachedEffect, changed rule text of cycling

This commit is contained in:
LevelX2 2012-10-10 01:31:27 +02:00
parent ef37e40f9f
commit e8f12b07ca
2 changed files with 12 additions and 1 deletions

View file

@ -48,6 +48,17 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl<GainAbilityA
protected AttachmentType attachmentType;
protected boolean fixedTarget = false;
public GainAbilityAttachedEffect(Ability ability, AttachmentType attachmentType, Duration duration, String rule) {
super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
this.ability = ability;
this.attachmentType = attachmentType;
this.duration = duration;
if (duration == Duration.EndOfTurn) {
fixedTarget = true;
}
this.staticText = rule;
}
public GainAbilityAttachedEffect(Ability ability, AttachmentType attachmentType, Duration duration) {
super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
this.ability = ability;

View file

@ -61,7 +61,7 @@ public class CyclingAbility extends ActivatedAbilityImpl<CyclingAbility> {
@Override
public String getRule() {
return "Cycling " + super.getRule();
return "Cycling " + getManaCostsToPay().getText()+ " <i>(" + super.getRule() + ")</i>";
}
}