fixed a typo in cantbeblockerof , forgot a letter :X

This commit is contained in:
omegablast2002@yahoo.com
2013-02-06 23:52:09 +00:00
parent cea9f0d8ae
commit 54780d3ef0

View File

@@ -2781,7 +2781,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
}
//cant be the blocker of targetchooser.
vector<string> splitCantBeBlock = parseBetween(s, "cantbeblockeof(", ")");
vector<string> splitCantBeBlock = parseBetween(s, "cantbeblockerof(", ")");
if (splitCantBeBlock.size())
{
TargetChooserFactory tcf(observer);
@@ -2790,13 +2790,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
{
fromTc = tcf.createTargetChooser(splitCantBeBlock[1], card);
}
if (!activated)
{
if(fromTc)
return NEW ACantBeBlockerOf(observer, id, card, target, fromTc, false);//of a targetchooser
else
return NEW ACantBeBlockerOf(observer, id, card, target, fromTc, true);//blocker of the card source.
}
return NULL;
}