added CD geared attribute
This commit is contained in:
@@ -20228,7 +20228,7 @@ type=Instant
|
|||||||
name=Conduit of Ruin
|
name=Conduit of Ruin
|
||||||
alias=401847
|
alias=401847
|
||||||
auto=may moveto(myhand) target(creature[colorless;manacost>=7]|mylibrary)
|
auto=may moveto(myhand) target(creature[colorless;manacost>=7]|mylibrary)
|
||||||
auto=lord(creature|mycastingzone) conduited
|
auto=lord(creature|mycastingzone) conduited dontremove
|
||||||
text=When you cast Conduit of Ruin, you may search your library for a colorless creature card with converted mana cost 7 or greater, reveal it, then shuffle your library and put that card on top of it. -- The first creature spell you cast each turn costs {2} less to cast.
|
text=When you cast Conduit of Ruin, you may search your library for a colorless creature card with converted mana cost 7 or greater, reveal it, then shuffle your library and put that card on top of it. -- The first creature spell you cast each turn costs {2} less to cast.
|
||||||
mana={6}
|
mana={6}
|
||||||
type=Creature
|
type=Creature
|
||||||
@@ -105454,8 +105454,8 @@ toughness=3
|
|||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
name=Stone Haven Outfitter
|
name=Stone Haven Outfitter
|
||||||
auto=lord(creature[gear >=1]) +1/+1
|
auto=lord(creature[geared]|mybattlefield) 1/1
|
||||||
auto=@movedto(graveyard) from(creature[gear >=1|mybattlefield):draw:1 controller
|
auto=@movedto(graveyard) from(creature[geared]|mybattlefield):draw:1 controller
|
||||||
text=Equipped creatures you control get +1/+1. -- Whenever an equipped creature you control dies, draw a card.
|
text=Equipped creatures you control get +1/+1. -- Whenever an equipped creature you control dies, draw a card.
|
||||||
mana={1}{W}
|
mana={1}{W}
|
||||||
type=Creature
|
type=Creature
|
||||||
@@ -105554,7 +105554,7 @@ toughness=2
|
|||||||
[card]
|
[card]
|
||||||
name=Stoneforge Masterwork
|
name=Stoneforge Masterwork
|
||||||
auto={2}:equip
|
auto={2}:equip
|
||||||
auto=teach(mytgt) type:creature[share!types!]:Battlefield/type:creature[share!types!]:Battlefield nonstatic
|
auto=teach(creature) transforms((,newability[foreach(other creature[share!types!]|mybattlefield) 1/1]))
|
||||||
text=Equipped creature gets +1/+1 for each other creature you control that shares a creature type with it. -- Equip {2}
|
text=Equipped creature gets +1/+1 for each other creature you control that shares a creature type with it. -- Equip {2}
|
||||||
mana={1}
|
mana={1}
|
||||||
type=Artifact
|
type=Artifact
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ class CardDescriptor: public MTGCardInstance
|
|||||||
int CDopponentDamaged;
|
int CDopponentDamaged;
|
||||||
int CDcontrollerDamaged;
|
int CDcontrollerDamaged;
|
||||||
int CDdamager;
|
int CDdamager;
|
||||||
|
int CDgeared;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ CardDescriptor::CardDescriptor()
|
|||||||
CDopponentDamaged = 0;
|
CDopponentDamaged = 0;
|
||||||
CDcontrollerDamaged = 0;
|
CDcontrollerDamaged = 0;
|
||||||
CDdamager = 0;
|
CDdamager = 0;
|
||||||
|
CDgeared = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CardDescriptor::init()
|
int CardDescriptor::init()
|
||||||
@@ -53,7 +54,7 @@ void CardDescriptor::setisMultiColored(int w)
|
|||||||
{
|
{
|
||||||
isMultiColored = w;
|
isMultiColored = w;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CardDescriptor::setNegativeSubtype(string value)
|
void CardDescriptor::setNegativeSubtype(string value)
|
||||||
{
|
{
|
||||||
int id = MTGAllCards::findType(value);
|
int id = MTGAllCards::findType(value);
|
||||||
@@ -210,6 +211,11 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
|
|||||||
{
|
{
|
||||||
match = NULL;
|
match = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((CDgeared == -1 && card->equipment > 0) || (CDgeared == 1 && card->equipment < 1))
|
||||||
|
{
|
||||||
|
match = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if ((isMultiColored == -1 && card->isMultiColored) || (isMultiColored == 1 && !card->isMultiColored))
|
if ((isMultiColored == -1 && card->isMultiColored) || (isMultiColored == 1 && !card->isMultiColored))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1361,6 +1361,17 @@ bool CardGui::FilterCard(MTGCard * _card,string filter)
|
|||||||
cd.unsecuresetfresh(1);
|
cd.unsecuresetfresh(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (attribute.find("geared") != string::npos)
|
||||||
|
{
|
||||||
|
if (minus)
|
||||||
|
{
|
||||||
|
cd.CDgeared = -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cd.CDgeared = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
//creature is a level up creature
|
//creature is a level up creature
|
||||||
else if (attribute.find("leveler") != string::npos)
|
else if (attribute.find("leveler") != string::npos)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -444,6 +444,17 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
|||||||
cd->unsecuresetfresh(1);
|
cd->unsecuresetfresh(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (attribute.find("geared") != string::npos)
|
||||||
|
{
|
||||||
|
if (minus)
|
||||||
|
{
|
||||||
|
cd->CDgeared = -1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cd->CDgeared = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
//creature is a level up creature
|
//creature is a level up creature
|
||||||
else if (attribute.find("leveler") != string::npos)
|
else if (attribute.find("leveler") != string::npos)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user