mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
GainAbilitySourceEffect now has constructor with default duration=WhileOnBattlefield
This commit is contained in:
parent
99fac46ec0
commit
9a2f819992
1 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,14 @@ public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySou
|
|||
|
||||
protected Ability ability;
|
||||
|
||||
/**
|
||||
* Add ability with Duration.WhileOnBattlefield
|
||||
* @param ability
|
||||
*/
|
||||
public GainAbilitySourceEffect(Ability ability) {
|
||||
this(ability, Duration.WhileOnBattlefield);
|
||||
}
|
||||
|
||||
public GainAbilitySourceEffect(Ability ability, Duration duration) {
|
||||
super(duration, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||
this.ability = ability;
|
||||
|
|
Loading…
Reference in a new issue