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:
@@ -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(¤tAbilities, NULL, source);
|
af.getAbilities(¤tAbilities, NULL, source);
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user