mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
*Added Alpha Status based on Coat of Arms.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -185,6 +185,7 @@ res/cardsfolder/a/alluring_siren.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/a/alms.txt -text
|
res/cardsfolder/a/alms.txt -text
|
||||||
res/cardsfolder/a/alpha_kavu.txt svneol=native#text/plain
|
res/cardsfolder/a/alpha_kavu.txt svneol=native#text/plain
|
||||||
res/cardsfolder/a/alpha_myr.txt svneol=native#text/plain
|
res/cardsfolder/a/alpha_myr.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/a/alpha_status.txt -text
|
||||||
res/cardsfolder/a/alpha_tyrranax.txt svneol=native#text/plain
|
res/cardsfolder/a/alpha_tyrranax.txt svneol=native#text/plain
|
||||||
res/cardsfolder/a/altar_golem.txt svneol=native#text/plain
|
res/cardsfolder/a/altar_golem.txt svneol=native#text/plain
|
||||||
res/cardsfolder/a/altar_of_bone.txt svneol=native#text/plain
|
res/cardsfolder/a/altar_of_bone.txt svneol=native#text/plain
|
||||||
|
|||||||
11
res/cardsfolder/a/alpha_status.txt
Normal file
11
res/cardsfolder/a/alpha_status.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Alpha Status
|
||||||
|
ManaCost:2 G
|
||||||
|
Types:Enchantment Aura
|
||||||
|
Text:Enchant Creature \r\nEnchanted creatures gets +2/+2 for each other creature on the battlefield that shares a creature type with it.
|
||||||
|
A:SP$Attach | Cost$ 2 G | ValidTgts$ Creature | AILogic$ Pump
|
||||||
|
SVar:Rarity:Uncommon
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/alpha_status.jpg
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
Oracle:Enchant creature\nEnchanted creature gets +2/+2 for each other creature on the battlefield that shares a creature type with it.
|
||||||
|
SetInfo:SCG|Uncommon|http://magiccards.info/scans/en/sc/110.jpg
|
||||||
|
End
|
||||||
@@ -1735,6 +1735,57 @@ public final class GameActionUtil {
|
|||||||
} // execute
|
} // execute
|
||||||
}; // Coat of Arms
|
}; // Coat of Arms
|
||||||
|
|
||||||
|
private static Command Alpha_Status = new Command() {
|
||||||
|
private static final long serialVersionUID = -3213793711304934358L;
|
||||||
|
|
||||||
|
CardList previouslyPumped = new CardList();
|
||||||
|
ArrayList<Integer> previouslyPumpedValue = new ArrayList<Integer>();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void execute() {
|
||||||
|
CardList alphaStatuses = AllZone.getHumanPlayer().getCardsIn(Zone.Battlefield).getName("Alpha Status");
|
||||||
|
alphaStatuses.addAll(AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield).getName("Alpha Status"));
|
||||||
|
|
||||||
|
CardList allCreatures = AllZone.getHumanPlayer().getCardsIn(Zone.Battlefield).getType("Creature");
|
||||||
|
allCreatures.addAll(AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield).getType("Creature"));
|
||||||
|
|
||||||
|
for(int i=0;i<previouslyPumped.size();i++) {
|
||||||
|
previouslyPumped.get(i).addSemiPermanentAttackBoost(0-previouslyPumpedValue.get(i));
|
||||||
|
previouslyPumped.get(i).addSemiPermanentDefenseBoost(0-previouslyPumpedValue.get(i));
|
||||||
|
}
|
||||||
|
previouslyPumped.clear();
|
||||||
|
previouslyPumpedValue.clear();
|
||||||
|
|
||||||
|
for(Card alpha : alphaStatuses) {
|
||||||
|
Card enchanted = alpha.getEnchantingCard();
|
||||||
|
int totalbuff = 0;
|
||||||
|
|
||||||
|
for(Card othercreat : allCreatures) {
|
||||||
|
boolean sharesatype = false;
|
||||||
|
if(enchanted != othercreat) {
|
||||||
|
for(String type : enchanted.getType()) {
|
||||||
|
if(CardUtil.getCreatureTypes().contains(type)) {
|
||||||
|
if(othercreat.getType().contains(type)) {
|
||||||
|
sharesatype = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(sharesatype) {
|
||||||
|
totalbuff += 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
enchanted.addSemiPermanentAttackBoost(totalbuff);
|
||||||
|
enchanted.addSemiPermanentDefenseBoost(totalbuff);
|
||||||
|
previouslyPumped.add(enchanted);
|
||||||
|
previouslyPumpedValue.add(totalbuff);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stores the Command
|
* stores the Command
|
||||||
*/
|
*/
|
||||||
@@ -2078,6 +2129,7 @@ public final class GameActionUtil {
|
|||||||
//Please add cards in alphabetical order so they are easier to find
|
//Please add cards in alphabetical order so they are easier to find
|
||||||
|
|
||||||
commands.put("Ajani_Avatar_Token", Ajani_Avatar_Token);
|
commands.put("Ajani_Avatar_Token", Ajani_Avatar_Token);
|
||||||
|
commands.put("Alpha_Status", Alpha_Status);
|
||||||
commands.put("Coat_of_Arms", Coat_of_Arms);
|
commands.put("Coat_of_Arms", Coat_of_Arms);
|
||||||
commands.put("Elspeth_Emblem", Elspeth_Emblem);
|
commands.put("Elspeth_Emblem", Elspeth_Emblem);
|
||||||
commands.put("Gaddock_Teeg", Gaddock_Teeg);
|
commands.put("Gaddock_Teeg", Gaddock_Teeg);
|
||||||
|
|||||||
@@ -202,6 +202,8 @@ public class StaticEffects {
|
|||||||
//value has to be an array, since certain cards have multiple commands associated with them
|
//value has to be an array, since certain cards have multiple commands associated with them
|
||||||
|
|
||||||
cardToEffectsList.put("Avatar", new String[]{"Ajani_Avatar_Token"});
|
cardToEffectsList.put("Avatar", new String[]{"Ajani_Avatar_Token"});
|
||||||
|
|
||||||
|
cardToEffectsList.put("Alpha Status", new String[]{"Alpha_Status"});
|
||||||
cardToEffectsList.put("Coat of Arms", new String[]{"Coat_of_Arms"});
|
cardToEffectsList.put("Coat of Arms", new String[]{"Coat_of_Arms"});
|
||||||
cardToEffectsList.put("Gaddock Teeg", new String[]{"Gaddock_Teeg"});
|
cardToEffectsList.put("Gaddock Teeg", new String[]{"Gaddock_Teeg"});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user