- Added Academy Researchers.

This commit is contained in:
Sloth
2012-01-27 11:30:15 +00:00
parent 6424673c05
commit f8ac708b77
3 changed files with 47 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -49,6 +49,7 @@ res/cardsfolder/a/abyssal_nocturnus.txt svneol=native#text/plain
res/cardsfolder/a/abyssal_persecutor.txt svneol=native#text/plain
res/cardsfolder/a/abyssal_specter.txt svneol=native#text/plain
res/cardsfolder/a/academy_rector.txt svneol=native#text/plain
res/cardsfolder/a/academy_researchers.txt -text
res/cardsfolder/a/academy_ruins.txt svneol=native#text/plain
res/cardsfolder/a/accelerate.txt svneol=native#text/plain
res/cardsfolder/a/accelerated_mutation.txt svneol=native#text/plain

View File

@@ -0,0 +1,14 @@
Name:Academy Researchers
ManaCost:1 U U
Types:Creature Drake
Text:no text
PT:2/2
K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChangeZone | TriggerDescription$ When CARDNAME enters the battlefield, you may put an Aura card from your hand onto the battlefield attached to Academy Researchers.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Battlefield | ChangeType$ Aura | AttachedTo$ Self
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/academy_researchers.jpg
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/58.jpg
SetInfo:10E|Uncommon|http://magiccards.info/scans/en/10e/63.jpg
Oracle:When Academy Researchers enters the battlefield, you may put an Aura card from your hand onto the battlefield attached to Academy Researchers.
End

View File

@@ -858,6 +858,22 @@ public final class AbilityFactoryChangeZone {
if (params.containsKey("GainControl")) {
c.addController(af.getHostCard());
}
if (params.containsKey("AttachedTo")) {
ArrayList<Card> list = AbilityFactory.getDefinedCards(sa.getSourceCard(), params.get("AttachedTo"), sa);
if (!list.isEmpty()) {
Card attachedTo = list.get(0);
if (c.isEnchanting()) {
// If this Card is already Enchanting something
// Need to unenchant it, then clear out the commands
final GameEntity oldEnchanted = c.getEnchanting();
c.removeEnchanting(oldEnchanted);
c.clearEnchantCommand();
c.clearUnEnchantCommand();
}
c.enchantEntity(attachedTo);
}
}
if (params.containsKey("Attacking")) {
AllZone.getCombat().addAttacker(c);
@@ -1016,6 +1032,22 @@ public final class AbilityFactoryChangeZone {
c.addController(af.getHostCard());
}
if (params.containsKey("AttachedTo")) {
ArrayList<Card> list = AbilityFactory.getDefinedCards(sa.getSourceCard(), params.get("AttachedTo"), sa);
if (!list.isEmpty()) {
Card attachedTo = list.get(0);
if (c.isEnchanting()) {
// If this Card is already Enchanting something
// Need to unenchant it, then clear out the commands
final GameEntity oldEnchanted = c.getEnchanting();
c.removeEnchanting(oldEnchanted);
c.clearEnchantCommand();
c.clearUnEnchantCommand();
}
c.enchantEntity(attachedTo);
}
}
if (params.containsKey("Attacking")) {
AllZone.getCombat().addAttacker(c);
}