added countertrack(counterstring) MTGAbility
what this does currently is remove a counter of the type counterstring and when the ability is destroyed it puts the counter back for us.
meant for weapons used as follows.
auto=teach(creature) countertrack(0/0,1,hand)
when the creature is equipped with this weapon it will remove a hand counter from the creature, when you remove the weapon, or the weapon is destroyed or whatever...it will put a hand counter back on the creature.
added dualwielding thisdescriptor...
auto=this(dualwielding) 2/2
auto=this(dualwielding) firststrike
enabled "restriction{" on phasebased triggers @next and @each...
i will work more on countertrack to extend it to domains if it currently isnt possible to use it in this case(haven't tested it on domains)....
This commit is contained in:
@@ -462,6 +462,29 @@ void GameObserver::gameStateBasedEffects()
|
||||
card->graveEffects = false;
|
||||
card->exileEffects = false;
|
||||
}
|
||||
|
||||
if(card->childrenCards.size())
|
||||
{
|
||||
MTGCardInstance * check = NULL;
|
||||
MTGCardInstance * matched = NULL;
|
||||
sort(card->childrenCards.begin(),card->childrenCards.end());
|
||||
for(unsigned int wC = 0; wC < int(card->childrenCards.size());wC++)
|
||||
{
|
||||
check = card->childrenCards[wC];
|
||||
for(unsigned int wCC = 0; wCC < int(card->childrenCards.size());wCC++)
|
||||
{
|
||||
if(check->getName() == card->childrenCards[wCC]->getName() && check != card->childrenCards[wCC])
|
||||
{
|
||||
card->isDualWielding = true;
|
||||
matched = card->childrenCards[wCC];
|
||||
}
|
||||
}
|
||||
if(matched)
|
||||
wC = card->childrenCards.size();
|
||||
}
|
||||
if(!matched)
|
||||
card->isDualWielding = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
//-------------------------------------
|
||||
@@ -539,7 +562,6 @@ void GameObserver::gameStateBasedEffects()
|
||||
c->wasDealtDamage = false;
|
||||
c->damageToController = false;
|
||||
c->damageToOpponent = false;
|
||||
|
||||
}
|
||||
for (int t = 0; t < nbcards; t++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user