Improved implementation for isCommander and RingBearer card status (now they are no longer basic abilities but inner card properties in order to avoid conflicts with abilitiy modificators), added a white border on commanders to highlight them during match in the various game zones.
This commit is contained in:
@@ -713,6 +713,30 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
|
||||
cd->isFlipped = 1;
|
||||
}
|
||||
}
|
||||
//Card is commander
|
||||
else if (attribute.find("iscommander") != string::npos)
|
||||
{
|
||||
if (minus)
|
||||
{
|
||||
cd->isCommander = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cd->isCommander = 1;
|
||||
}
|
||||
}
|
||||
//Card is Ring bearer
|
||||
else if (attribute.find("ringbearer") != string::npos)
|
||||
{
|
||||
if (minus)
|
||||
{
|
||||
cd->isRingBearer = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
cd->isRingBearer = 1;
|
||||
}
|
||||
}
|
||||
//Has x in cost
|
||||
else if (attribute.find("hasx") != string::npos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user