mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[SLD] Implement Atreus, Impulsive Son
This commit is contained in:
parent
1c0525d058
commit
7b131673be
4 changed files with 120 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.MageSingleton;
|
||||
import mage.abilities.StaticAbility;
|
||||
import mage.constants.Zone;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class PartnerFatherAndSonAbility extends StaticAbility implements MageSingleton {
|
||||
|
||||
private static final PartnerFatherAndSonAbility instance = new PartnerFatherAndSonAbility();
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static PartnerFatherAndSonAbility getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private PartnerFatherAndSonAbility() {
|
||||
super(Zone.BATTLEFIELD, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Partner—Father & son <i>(You can have two commanders if both have this ability.)</i>";
|
||||
}
|
||||
|
||||
@Override
|
||||
public PartnerFatherAndSonAbility copy() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package mage.util.validation;
|
||||
|
||||
import mage.abilities.keyword.PartnerFatherAndSonAbility;
|
||||
import mage.cards.Card;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum PartnerFatherAndSonValidator implements CommanderValidator {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean checkPartner(Card commander1, Card commander2) {
|
||||
return commander1.getAbilities().containsClass(PartnerFatherAndSonAbility.class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue