added
this(damaged) added targetchooser [damaged] status added targetchooser [controllerdamager] targetchooser [opponentdamager] basically checks for whos doing damage to who in a match per turn.
This commit is contained in:
@@ -337,7 +337,7 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
cd->isLeveler = 1;
|
||||
}
|
||||
}
|
||||
//creature is a level up creature
|
||||
//creature is enchanted
|
||||
else if (attribute.find("enchanted") != string::npos)
|
||||
{
|
||||
if (minus)
|
||||
@@ -349,6 +349,42 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
cd->CDenchanted = 1;
|
||||
}
|
||||
}
|
||||
//creature was damaged
|
||||
else if (attribute.find("damaged") != string::npos)
|
||||
{
|
||||
if (minus)
|
||||
{
|
||||
cd->CDdamaged = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cd->CDdamaged = 1;
|
||||
}
|
||||
}
|
||||
//creature dealt damage to opponent
|
||||
else if (attribute.find("opponentdamager") != string::npos)
|
||||
{
|
||||
if (minus)
|
||||
{
|
||||
cd->CDopponentDamaged = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cd->CDopponentDamaged = 1;
|
||||
}
|
||||
}
|
||||
//creature dealt damage to controller
|
||||
else if (attribute.find("controllerdamager") != string::npos)
|
||||
{
|
||||
if (minus)
|
||||
{
|
||||
cd->CDcontrollerDamaged = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cd->CDcontrollerDamaged = 1;
|
||||
}
|
||||
}
|
||||
else if (attribute.find("multicolor") != string::npos)
|
||||
{
|
||||
//card is multicolored?
|
||||
|
||||
Reference in New Issue
Block a user