mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Added rule parameter to GainAbilityAttachedEffect, changed rule text of cycling
This commit is contained in:
parent
ef37e40f9f
commit
e8f12b07ca
2 changed files with 12 additions and 1 deletions
|
@ -48,6 +48,17 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl<GainAbilityA
|
||||||
protected AttachmentType attachmentType;
|
protected AttachmentType attachmentType;
|
||||||
protected boolean fixedTarget = false;
|
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) {
|
public GainAbilityAttachedEffect(Ability ability, AttachmentType attachmentType, Duration duration) {
|
||||||
super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||||
this.ability = ability;
|
this.ability = ability;
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class CyclingAbility extends ActivatedAbilityImpl<CyclingAbility> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRule() {
|
public String getRule() {
|
||||||
return "Cycling " + super.getRule();
|
return "Cycling " + getManaCostsToPay().getText()+ " <i>(" + super.getRule() + ")</i>";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue