foul-magics/Mage/src/main/java/mage/abilities/common/PutIntoGraveFromLibrarySourceTriggeredAbility.java
xenohedron 2969ba58be
refactors: common class for "return all xxx from your graveyard to the battlefield" (#13034)
* refactor: new ReturnFromYourGraveyardToBattlefieldAllEffect

* refactor: new ShuffleYourGraveyardIntoLibraryEffect

also new PutIntoGraveFromLibrarySourceTriggeredAbility
2024-10-26 16:20:31 -04:00

27 lines
875 B
Java

package mage.abilities.common;
import mage.abilities.effects.Effect;
import mage.constants.Zone;
/**
* @author xenohedron
*/
public class PutIntoGraveFromLibrarySourceTriggeredAbility extends ZoneChangeTriggeredAbility {
public PutIntoGraveFromLibrarySourceTriggeredAbility(Effect effect) {
this(effect, false);
}
public PutIntoGraveFromLibrarySourceTriggeredAbility(Effect effect, boolean optional) {
super(Zone.LIBRARY, Zone.GRAVEYARD, effect, "When {this} is put into your graveyard from your library, ", optional);
}
protected PutIntoGraveFromLibrarySourceTriggeredAbility(final PutIntoGraveFromLibrarySourceTriggeredAbility ability) {
super(ability);
}
@Override
public PutIntoGraveFromLibrarySourceTriggeredAbility copy() {
return new PutIntoGraveFromLibrarySourceTriggeredAbility(this);
}
}