Implementing Annihilator from Eldrazi...
Has anyone given thought to implementing Annihilator from Rise of the Eldrazi?
The basics are pretty simple.
cards.txt can look something like this:
Anyone given this any thought?
-slapshot5
PS - I think some tweaks will be necessary in order to add Eldrazi Conscription, which gives Annihilator. Or maybe that can all be done in the Enchant/Unenchant code. I haven't thought about that yet.
The basics are pretty simple.
cards.txt can look something like this:
- Code: Select all
Ulamog's Crusher
8
Creature Eldrazi
no text
8/8
This card attacks each turn if able.
Annihilator:2
- Code: Select all
if(hasKeyword(card, "Annihilator") != -1) {
int n = hasKeyword(card, "Annihilator");
if(n != -1) {
String parse = card.getKeyword().get(n).toString();
card.removeIntrinsicKeyword(parse);
String l[] = parse.split(":");
final int annihilator = Integer.parseInt(l[1]);
card.setAnnihilator(annihilator);
}
}//annihilator
- Code: Select all
public boolean hasAnnihilator();
public void setAnnihilator();
public int getAnnihilator();
- Code: Select all
if(!faceDown && card.hasAnnihilator()) {
area.append("Annihilator "+card.getAnnihilator());
}
Anyone given this any thought?
-slapshot5
PS - I think some tweaks will be necessary in order to add Eldrazi Conscription, which gives Annihilator. Or maybe that can all be done in the Enchant/Unenchant code. I haven't thought about that yet.