fixed a error in parent push back for equips, and using card which was casted, instead of target....minor tweak

This commit is contained in:
omegablast2002@yahoo.com
2011-09-11 09:39:57 +00:00
parent 89d6936eb0
commit a36b69cdb1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2383,7 +2383,7 @@ public:
{ {
source->target = equipped; source->target = equipped;
source->target->equipment += 1; source->target->equipment += 1;
source->parentCards.push_back((MTGCardInstance*)target); source->parentCards.push_back(equipped);
source->target->childrenCards.push_back((MTGCardInstance*)source); source->target->childrenCards.push_back((MTGCardInstance*)source);
AbilityFactory af; AbilityFactory af;
af.getAbilities(&currentAbilities, NULL, source); af.getAbilities(&currentAbilities, NULL, source);
+2 -2
View File
@@ -1469,7 +1469,7 @@ bool ParentChildChooser::canTarget(Targetable * target,bool withoutProtections)
for(unsigned int w = 0;w < source->childrenCards.size();w++) for(unsigned int w = 0;w < source->childrenCards.size();w++)
{ {
MTGCardInstance * child = source->childrenCards[w]; MTGCardInstance * child = source->childrenCards[w];
if(child == target) if(child == card)
{ {
if(deeperTargeting) if(deeperTargeting)
{ {
@@ -1487,7 +1487,7 @@ bool ParentChildChooser::canTarget(Targetable * target,bool withoutProtections)
for(unsigned int w = 0;w < source->parentCards.size();w++) for(unsigned int w = 0;w < source->parentCards.size();w++)
{ {
MTGCardInstance * parent = source->parentCards[w]; MTGCardInstance * parent = source->parentCards[w];
if(parent == target) if(parent == card)
{ {
if(deeperTargeting) if(deeperTargeting)
{ {