mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Academy Researchers.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
14
res/cardsfolder/a/academy_researchers.txt
Normal file
14
res/cardsfolder/a/academy_researchers.txt
Normal 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
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user