forked from External/mage
refactors: common class for "return all xxx from your graveyard to the battlefield" (#13034)
* refactor: new ReturnFromYourGraveyardToBattlefieldAllEffect * refactor: new ShuffleYourGraveyardIntoLibraryEffect also new PutIntoGraveFromLibrarySourceTriggeredAbility
This commit is contained in:
parent
001f9e866f
commit
2969ba58be
32 changed files with 308 additions and 1024 deletions
|
|
@ -0,0 +1,27 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue