mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* no need to specify mana cost, just add cost * handle all mana costs through addcost method only * eliminate another constructor * more constructor cleanup
31 lines
750 B
Java
31 lines
750 B
Java
package mage.abilities.common;
|
|
|
|
import mage.constants.Zone;
|
|
import mage.abilities.ActivatedAbilityImpl;
|
|
import mage.abilities.costs.Cost;
|
|
import mage.abilities.effects.Effect;
|
|
|
|
/**
|
|
*
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class SimpleActivatedAbility extends ActivatedAbilityImpl {
|
|
|
|
public SimpleActivatedAbility(Effect effect, Cost cost) {
|
|
this(Zone.BATTLEFIELD, effect, cost);
|
|
}
|
|
|
|
public SimpleActivatedAbility(Zone zone, Effect effect, Cost cost) {
|
|
super(zone, effect, cost);
|
|
}
|
|
|
|
protected SimpleActivatedAbility(final SimpleActivatedAbility ability) {
|
|
super(ability);
|
|
}
|
|
|
|
@Override
|
|
public SimpleActivatedAbility copy() {
|
|
return new SimpleActivatedAbility(this);
|
|
}
|
|
|
|
}
|