Fix for issue 962 (Hexproof) by Dmitri
This commit is contained in:
@@ -179,16 +179,16 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
|
||||
rtc = comparasion[i].substr(foundType + 5, end - foundType - 5).c_str();
|
||||
TargetChooserFactory tcf(observer);
|
||||
TargetChooser * ttc = tcf.createTargetChooser(rtc,card);
|
||||
ttc->withoutProtections = true;
|
||||
mod = atoi(comparasion[i].substr(end+1).c_str());
|
||||
bool withoutProtections = true;
|
||||
if(i == 2)
|
||||
{
|
||||
secondAmount = ttc->countValidTargets();
|
||||
secondAmount = ttc->countValidTargets(withoutProtections);
|
||||
secondAmount += mod;
|
||||
}
|
||||
else
|
||||
{
|
||||
firstAmount = ttc->countValidTargets();
|
||||
firstAmount = ttc->countValidTargets(withoutProtections);
|
||||
firstAmount += mod;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user