Revert my Graphic changes
I think it's the one who cause those crashes
This commit is contained in:
@@ -293,6 +293,19 @@ ThisDescriptor * ThisDescriptorFactory::createThisDescriptor(GameObserver* obser
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//controller creature spells - conduit of ruin
|
||||
found = s.find("creaturespells");
|
||||
if (found != string::npos)
|
||||
{
|
||||
ThisCreatureSpells * td = NEW ThisCreatureSpells(criterion);
|
||||
if (td)
|
||||
{
|
||||
td->comparisonMode = mode;
|
||||
return td;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//power
|
||||
found = s.find("power");
|
||||
if (found != string::npos)
|
||||
@@ -470,6 +483,21 @@ ThisControllerlife* ThisControllerlife::clone() const
|
||||
return NEW ThisControllerlife(*this);
|
||||
}
|
||||
|
||||
ThisCreatureSpells::ThisCreatureSpells(int count)
|
||||
{
|
||||
comparisonCriterion = count;
|
||||
}
|
||||
|
||||
int ThisCreatureSpells::match(MTGCardInstance * card)
|
||||
{
|
||||
return matchValue(card->controller()->game->stack->seenThisTurn("creature", Constants::CAST_ALL));
|
||||
}
|
||||
|
||||
ThisCreatureSpells* ThisCreatureSpells::clone() const
|
||||
{
|
||||
return NEW ThisCreatureSpells(*this);
|
||||
}
|
||||
|
||||
ThisPower::ThisPower(int power)
|
||||
{
|
||||
comparisonCriterion = power;
|
||||
@@ -713,4 +741,4 @@ int ThisVariable::match(MTGCardInstance * card)
|
||||
ThisVariable * ThisVariable::clone() const
|
||||
{
|
||||
return NEW ThisVariable(*this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user