Fix Aura Curse
Aura Curse that targets a player should update its position after casting.
This commit is contained in:
@@ -195,7 +195,7 @@ void GuiPlay::Replace()
|
|||||||
for (iterator it = cards.begin(); it != end_spells; ++it)
|
for (iterator it = cards.begin(); it != end_spells; ++it)
|
||||||
if (!(*it)->card->target)
|
if (!(*it)->card->target)
|
||||||
{
|
{
|
||||||
if((!(*it)->card->hasSubtype(Subtypes::TYPE_AURA)|| ((*it)->card->hasSubtype(Subtypes::TYPE_AURA) && (*it)->card->playerTarget)) && !(*it)->card->hasType(Subtypes::TYPE_PLANESWALKER))
|
if((!(*it)->card->hasSubtype(Subtypes::TYPE_AURA)|| ((*it)->card->hasSubtype(Subtypes::TYPE_AURA) && !(*it)->card->playerTarget)) && !(*it)->card->hasType(Subtypes::TYPE_PLANESWALKER))
|
||||||
{
|
{
|
||||||
if (mpDuelLayers->getRenderedPlayer() == (*it)->card->controller())
|
if (mpDuelLayers->getRenderedPlayer() == (*it)->card->controller())
|
||||||
++selfSpellsN;
|
++selfSpellsN;
|
||||||
@@ -231,7 +231,7 @@ void GuiPlay::Replace()
|
|||||||
for (iterator it = cards.begin(); it != end_spells; ++it)
|
for (iterator it = cards.begin(); it != end_spells; ++it)
|
||||||
if (!(*it)->card->target)
|
if (!(*it)->card->target)
|
||||||
{
|
{
|
||||||
if((!(*it)->card->hasSubtype(Subtypes::TYPE_AURA)|| ((*it)->card->hasSubtype(Subtypes::TYPE_AURA) && (*it)->card->playerTarget)) && !(*it)->card->hasType(Subtypes::TYPE_PLANESWALKER))
|
if((!(*it)->card->hasSubtype(Subtypes::TYPE_AURA)|| ((*it)->card->hasSubtype(Subtypes::TYPE_AURA) && !(*it)->card->playerTarget)) && !(*it)->card->hasType(Subtypes::TYPE_PLANESWALKER))
|
||||||
{
|
{
|
||||||
if (mpDuelLayers->getRenderedPlayer() == (*it)->card->controller())
|
if (mpDuelLayers->getRenderedPlayer() == (*it)->card->controller())
|
||||||
selfSpells.Enstack(*it);
|
selfSpells.Enstack(*it);
|
||||||
|
|||||||
Reference in New Issue
Block a user