mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Converted Preeminent Captain to script.
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
Name:Preeminent Captain
|
Name:Preeminent Captain
|
||||||
ManaCost:2 W
|
ManaCost:2 W
|
||||||
Types:Creature Kithkin Soldier
|
Types:Creature Kithkin Soldier
|
||||||
Text:Whenever CARDNAME attacks, you may put a Soldier creature card from your hand onto the battlefield tapped and attacking.
|
Text:no text
|
||||||
PT:2/2
|
PT:2/2
|
||||||
K:First Strike
|
K:First Strike
|
||||||
|
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigChange | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME attacks, you may put a Soldier creature card from your hand onto the battlefield tapped and attacking.
|
||||||
|
SVar:TrigChange:AB$ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.Soldier+YouCtrl | Tapped$ True | Attacking$ True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/preeminent_captain.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/preeminent_captain.jpg
|
||||||
SetInfo:MOR|Rare|http://magiccards.info/scans/en/mt/20.jpg
|
SetInfo:MOR|Rare|http://magiccards.info/scans/en/mt/20.jpg
|
||||||
|
|||||||
@@ -2257,7 +2257,7 @@ public class CombatUtil {
|
|||||||
|
|
||||||
} // Witch-Maw Nephilim
|
} // Witch-Maw Nephilim
|
||||||
|
|
||||||
else if (c.getName().equals("Preeminent Captain") && !c.getCreatureAttackedThisCombat()) {
|
/*else if (c.getName().equals("Preeminent Captain") && !c.getCreatureAttackedThisCombat()) {
|
||||||
System.out.println("Preeminent Captain Attacks");
|
System.out.println("Preeminent Captain Attacks");
|
||||||
|
|
||||||
CardList soldiers = c.getController().getCardsIn(Zone.Hand);
|
CardList soldiers = c.getController().getCardsIn(Zone.Hand);
|
||||||
@@ -2288,7 +2288,7 @@ public class CombatUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // if (creatures.size() > 0)
|
} // if (creatures.size() > 0)
|
||||||
} // Preeminent Captain
|
}*/ // Preeminent Captain
|
||||||
|
|
||||||
else if (c.getName().equals("Sapling of Colfenor") && !c.getCreatureAttackedThisCombat()) {
|
else if (c.getName().equals("Sapling of Colfenor") && !c.getCreatureAttackedThisCombat()) {
|
||||||
Player player = c.getController();
|
Player player = c.getController();
|
||||||
|
|||||||
@@ -835,6 +835,10 @@ public final class AbilityFactory_ChangeZone {
|
|||||||
c.addController(af.getHostCard());
|
c.addController(af.getHostCard());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.containsKey("Attacking")) {
|
||||||
|
AllZone.getCombat().addAttacker(c);
|
||||||
|
}
|
||||||
|
|
||||||
movedCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
|
movedCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
|
||||||
} else {
|
} else {
|
||||||
movedCard = AllZone.getGameAction().moveTo(destZone, c);
|
movedCard = AllZone.getGameAction().moveTo(destZone, c);
|
||||||
@@ -987,6 +991,10 @@ public final class AbilityFactory_ChangeZone {
|
|||||||
if (params.containsKey("GainControl")) {
|
if (params.containsKey("GainControl")) {
|
||||||
c.addController(af.getHostCard());
|
c.addController(af.getHostCard());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.containsKey("Attacking")) {
|
||||||
|
AllZone.getCombat().addAttacker(c);
|
||||||
|
}
|
||||||
// Auras without Candidates stay in their current location
|
// Auras without Candidates stay in their current location
|
||||||
if (c.isAura()) {
|
if (c.isAura()) {
|
||||||
final SpellAbility saAura = AbilityFactory_Attach.getAttachSpellAbility(c);
|
final SpellAbility saAura = AbilityFactory_Attach.getAttachSpellAbility(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user