Add Magnetic Web.

This commit is contained in:
elcnesh
2014-11-02 08:18:17 +00:00
parent 9036cc33a9
commit c0d156856a
3 changed files with 9 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -8522,6 +8522,7 @@ forge-gui/res/cardsfolder/m/magnetic_flux.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/magnetic_mine.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/magnetic_mountain.txt -text
forge-gui/res/cardsfolder/m/magnetic_theft.txt -text
forge-gui/res/cardsfolder/m/magnetic_web.txt -text
forge-gui/res/cardsfolder/m/magnify.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/magnigoth_treefolk.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/magnivore.txt svneol=native#text/plain

View File

@@ -54,7 +54,7 @@ public class AttackConstraints {
// Number of "must attack" constraints on each creature with a magnet counter (equal to the number of permanents requiring that constraint).
int nMagnetRequirements = 0;
final CardCollectionView magnetAttackers = CardLists.filter(combat.getAttackers(), CardPredicates.hasCounter(CounterType.MAGNET));
final CardCollectionView magnetAttackers = CardLists.filter(possibleAttackers, CardPredicates.hasCounter(CounterType.MAGNET));
// Only require if a creature with a magnet counter on it attacks.
if (!magnetAttackers.isEmpty()) {
nMagnetRequirements = CardLists.getAmountOfKeyword(

View File

@@ -0,0 +1,7 @@
Name:Magnetic Web
ManaCost:2
Types:Artifact
K:If a creature with a magnet counter on it attacks, all creatures with magnet counters on them attack if able.
T:Mode$ Attacks | ValidCard$ Creature.counters_GE1_MAGNET | TriggerZones$ Battlefield | Execute$ TrigLure | TriggerDescription$ Whenever a creature with a magnet counter on it attacks, all creatures with magnet counters on them block that creature if able.
SVar:TrigLure:DB$ MustBlock | Defined$ Valid Creature.counters_GE1_MAGNET | DefinedAttacker$ TriggeredAttacker
A:AB$ PutCounter | Cost$ 1 T | ValidTgts$ Creature | TgtPrompt$ Select target creature | CounterType$ MAGNET | CounterNum$ 1 | SpellDescription$ Put a magnet counter on target creature.