mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Little AI fix in AF Attach Curse.
- Added Screams from Within.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6531,6 +6531,7 @@ res/cardsfolder/s/scrapheap.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/scrapyard_salvo.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/screaming_fury.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/screaming_seahawk.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/screams_from_within.txt -text
|
||||
res/cardsfolder/s/screams_of_the_damned.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/screeching_buzzard.txt svneol=native#text/plain
|
||||
res/cardsfolder/s/screeching_drake.txt svneol=native#text/plain
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,6 +9,7 @@
|
||||
res/PerSetTrackingResults
|
||||
res/cardsfolder/cardsfolder.zip
|
||||
res/gui/display_new_layout.xml
|
||||
res/oracleScript.log
|
||||
res/quest/questData.dat
|
||||
res/reprintSetInfo.log
|
||||
res/setInfoScript.log
|
||||
|
||||
14
res/cardsfolder/s/screams_from_within.txt
Normal file
14
res/cardsfolder/s/screams_from_within.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
Name:Screams from Within
|
||||
ManaCost:1 B B
|
||||
Types:Enchantment Aura
|
||||
Text:no text
|
||||
K:Enchant creature
|
||||
A:SP$ Attach | Cost$ 1 B B | ValidTgts$ Creature | AILogic$ Curse
|
||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ -1 | AddToughness$ -1 | Description$ Enchanted creature gets -1/-1.
|
||||
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChange | TriggerDescription$ When enchanted creature is put into a graveyard, return CARDNAME from your graveyard to the battlefield.
|
||||
SVar:TrigChange:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Battlefield
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/screams_from_within.jpg
|
||||
SetInfo:DST|Uncommon|http://magiccards.info/scans/en/ds/52.jpg
|
||||
Oracle:Enchant creature\nEnchanted creature gets -1/-1.\nWhen enchanted creature dies, return Screams from Within from your graveyard to the battlefield.
|
||||
End
|
||||
@@ -425,17 +425,17 @@ public class AbilityFactory_Attach {
|
||||
prefList = list.filter(new CardListFilter() {
|
||||
@Override
|
||||
public boolean addCard(Card c) {
|
||||
if (c.hasKeyword("Indestructible") && c.getNetDefense() <= Math.abs(tgh))
|
||||
if (!c.hasKeyword("Indestructible") && c.getLethalDamage() <= Math.abs(tgh))
|
||||
return true;
|
||||
|
||||
return c.getLethalDamage() <= Math.abs(tgh);
|
||||
return c.getNetDefense() <= Math.abs(tgh);
|
||||
}
|
||||
});
|
||||
}
|
||||
Card c = null;
|
||||
if (prefList == null || prefList.size() == 0)
|
||||
prefList = new CardList(list);
|
||||
else if (prefList.size() > 0){
|
||||
else {
|
||||
c = CardFactoryUtil.AI_getBest(prefList);
|
||||
if (c != null)
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user