GainAbilitySourceEffect now has constructor with default duration=WhileOnBattlefield

This commit is contained in:
magenoxx 2011-08-12 00:34:22 +04:00
parent 99fac46ec0
commit 9a2f819992

View file

@ -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;