mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Added Catalyst Stone.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1446,6 +1446,7 @@ res/cardsfolder/c/cataclysm.txt -text
|
|||||||
res/cardsfolder/c/catacomb_dragon.txt -text
|
res/cardsfolder/c/catacomb_dragon.txt -text
|
||||||
res/cardsfolder/c/catacomb_slug.txt -text
|
res/cardsfolder/c/catacomb_slug.txt -text
|
||||||
res/cardsfolder/c/catalog.txt svneol=native#text/plain
|
res/cardsfolder/c/catalog.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/c/catalyst_stone.txt -text
|
||||||
res/cardsfolder/c/catapult_master.txt svneol=native#text/plain
|
res/cardsfolder/c/catapult_master.txt svneol=native#text/plain
|
||||||
res/cardsfolder/c/catapult_squad.txt svneol=native#text/plain
|
res/cardsfolder/c/catapult_squad.txt svneol=native#text/plain
|
||||||
res/cardsfolder/c/catastrophe.txt svneol=native#text/plain
|
res/cardsfolder/c/catastrophe.txt svneol=native#text/plain
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -359,6 +359,7 @@ res/pics/TSP
|
|||||||
res/pics/UDS
|
res/pics/UDS
|
||||||
res/pics/ULG
|
res/pics/ULG
|
||||||
res/pics/USG
|
res/pics/USG
|
||||||
|
res/pics/VAN
|
||||||
res/pics/VIS
|
res/pics/VIS
|
||||||
res/pics/WTH
|
res/pics/WTH
|
||||||
res/pics/WWK
|
res/pics/WWK
|
||||||
|
|||||||
12
res/cardsfolder/c/catalyst_stone.txt
Normal file
12
res/cardsfolder/c/catalyst_stone.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Name:Catalyst Stone
|
||||||
|
ManaCost:2
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
S:Mode$ ReduceCost | ValidCard$ Card | Type$ Flashback | Activator$ You | Amount$ 2 | Description$ Flashback costs you pay cost up to 2 less.
|
||||||
|
S:Mode$ RaiseCost | ValidCard$ Card | Type$ Flashback | Activator$ Opponent | Amount$ 2 | Description$ Flashback costs your opponents pay cost 2 more.
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/catalyst_stone.jpg
|
||||||
|
SetInfo:ODY|Rare|http://magiccards.info/scans/en/od/297.jpg
|
||||||
|
Oracle:Flashback costs you pay cost up to {2} less.\nFlashback costs your opponents pay cost {2} more.
|
||||||
|
End
|
||||||
@@ -73,10 +73,15 @@ public class StaticAbilityCostChange {
|
|||||||
if (!(sa instanceof AbilityActivated)) {
|
if (!(sa instanceof AbilityActivated)) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
}
|
}
|
||||||
} else if (params.get("Type").equals("NonManaAbility")
|
} else if (params.get("Type").equals("NonManaAbility")) {
|
||||||
&& (!(sa instanceof AbilityActivated) || null != sa.getManaPart())) {
|
if (!(sa instanceof AbilityActivated) || null != sa.getManaPart()) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
}
|
}
|
||||||
|
} else if (params.get("Type").equals("Flashback")) {
|
||||||
|
if (!sa.isFlashBackAbility()) {
|
||||||
|
return originalCost;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) {
|
if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
@@ -186,18 +191,27 @@ public class StaticAbilityCostChange {
|
|||||||
return originalCost;
|
return originalCost;
|
||||||
}
|
}
|
||||||
if (params.containsKey("Type")) {
|
if (params.containsKey("Type")) {
|
||||||
if (params.get("Type").equals("Spell") && !sa.isSpell()) {
|
if (params.get("Type").equals("Spell")) {
|
||||||
|
if (!sa.isSpell()) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
}
|
}
|
||||||
if (params.get("Type").equals("Ability") && !(sa instanceof AbilityActivated)) {
|
} else if (params.get("Type").equals("Ability")) {
|
||||||
|
if (!(sa instanceof AbilityActivated)) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
}
|
}
|
||||||
if (params.get("Type").equals("Cycling") && !sa.isCycling()) {
|
} else if (params.get("Type").equals("Cycling")) {
|
||||||
|
if (!sa.isCycling()) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
} else if (params.get("Type").equals("Equip")
|
}
|
||||||
&& (!(sa instanceof AbilityActivated) || !sa.hasParam("Equip"))) {
|
} else if (params.get("Type").equals("Equip")) {
|
||||||
|
if (!(sa instanceof AbilityActivated) || !sa.hasParam("Equip")) {
|
||||||
return originalCost;
|
return originalCost;
|
||||||
}
|
}
|
||||||
|
} else if (params.get("Type").equals("Flashback")) {
|
||||||
|
if (!sa.isFlashBackAbility()) {
|
||||||
|
return originalCost;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (params.containsKey("ValidTarget")) {
|
if (params.containsKey("ValidTarget")) {
|
||||||
Target tgt = sa.getTarget();
|
Target tgt = sa.getTarget();
|
||||||
|
|||||||
Reference in New Issue
Block a user