mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Add Magnetic Web.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
7
forge-gui/res/cardsfolder/m/magnetic_web.txt
Normal file
7
forge-gui/res/cardsfolder/m/magnetic_web.txt
Normal 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.
|
||||
Reference in New Issue
Block a user