fixed a parsing error with tokengen, no actually my fault :P there was never a check if the end was the real end or not.
2nd, added this(blocking) in hopes to fix mogg flunkies and similar creatures.
This commit is contained in:
@@ -214,7 +214,19 @@ ThisDescriptor * ThisDescriptorFactory::createThisDescriptor(string s)
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//whenever this creature blocks do effect
|
||||
found = s.find("blocking");
|
||||
if (found != string::npos)
|
||||
{
|
||||
ThisBlocked * td = NEW ThisBlocked(criterion);
|
||||
if (td)
|
||||
{
|
||||
td->comparisonMode = mode;
|
||||
return td;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//whenever this creature attacks do effect
|
||||
found = s.find("notblocked");
|
||||
if (found != string::npos)
|
||||
@@ -444,6 +456,18 @@ int ThisAttacked::match(MTGCardInstance * card)
|
||||
return matchValue(card->didattacked);
|
||||
}
|
||||
|
||||
ThisBlocked::ThisBlocked(int block)
|
||||
{
|
||||
|
||||
comparisonCriterion = block;
|
||||
}
|
||||
|
||||
int ThisBlocked::match(MTGCardInstance * card)
|
||||
{
|
||||
|
||||
return matchValue(card->didblocked);
|
||||
}
|
||||
|
||||
ThisNotBlocked::ThisNotBlocked(int unblocked)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user