forked from External/mage
Cleanup activated ability constructors (#11283)
* simplify LoyaltyAbility constructors * remove unused constructors in ActivatedAbilityImpl * cleanup * remove null rule setting * another unused constructor * fix escape ability reminder text * escape text adjustment * simplify Trigons, remove Costs constructor * rework Villainous Ogre, remove another class and constructor * fix test using wrong text for trigon ability
This commit is contained in:
parent
25e559dd9d
commit
4e2a5bd5a9
38 changed files with 138 additions and 368 deletions
|
|
@ -4,7 +4,6 @@ import mage.abilities.costs.Cost;
|
|||
import mage.abilities.costs.common.PayLoyaltyCost;
|
||||
import mage.abilities.costs.common.PayVariableLoyaltyCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.Effects;
|
||||
import mage.constants.TimingRule;
|
||||
import mage.constants.Zone;
|
||||
|
||||
|
|
@ -18,21 +17,11 @@ public class LoyaltyAbility extends ActivatedAbilityImpl {
|
|||
this.timing = TimingRule.SORCERY;
|
||||
}
|
||||
|
||||
public LoyaltyAbility(Effects effects, int loyalty) {
|
||||
super(Zone.BATTLEFIELD, effects, new PayLoyaltyCost(loyalty));
|
||||
this.timing = TimingRule.SORCERY;
|
||||
}
|
||||
|
||||
public LoyaltyAbility(Effect effect) {
|
||||
super(Zone.BATTLEFIELD, effect, new PayVariableLoyaltyCost());
|
||||
this.timing = TimingRule.SORCERY;
|
||||
}
|
||||
|
||||
public LoyaltyAbility(Effects effects) {
|
||||
super(Zone.BATTLEFIELD, effects, new PayVariableLoyaltyCost());
|
||||
this.timing = TimingRule.SORCERY;
|
||||
}
|
||||
|
||||
protected LoyaltyAbility(final LoyaltyAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue