just being safe here...there is a report of an unreproducible bug that happens completely at random since i moved the parsing of limit into the reactToClick, im guessing it might be that limitPerTurn is never set.
This commit is contained in:
@@ -37,6 +37,7 @@ int GenericActivatedAbility::isReactingToClick(MTGCardInstance * card, ManaCost
|
|||||||
{
|
{
|
||||||
if (dynamic_cast<AAMorph*> (ability) && !card->isMorphed && !card->morphed && card->turningOver)
|
if (dynamic_cast<AAMorph*> (ability) && !card->isMorphed && !card->morphed && card->turningOver)
|
||||||
return 0;
|
return 0;
|
||||||
|
limitPerTurn = 0;
|
||||||
if(limit.size())
|
if(limit.size())
|
||||||
{
|
{
|
||||||
WParsedInt * value = NEW WParsedInt(limit.c_str(),NULL,source);
|
WParsedInt * value = NEW WParsedInt(limit.c_str(),NULL,source);
|
||||||
@@ -2099,6 +2100,7 @@ int GenericTargetAbility::resolve()
|
|||||||
|
|
||||||
int GenericTargetAbility::isReactingToClick(MTGCardInstance * card, ManaCost * mana)
|
int GenericTargetAbility::isReactingToClick(MTGCardInstance * card, ManaCost * mana)
|
||||||
{
|
{
|
||||||
|
limitPerTurn = 0;
|
||||||
if(limit.size())
|
if(limit.size())
|
||||||
{
|
{
|
||||||
WParsedInt * value = NEW WParsedInt(limit.c_str(),NULL,source);
|
WParsedInt * value = NEW WParsedInt(limit.c_str(),NULL,source);
|
||||||
|
|||||||
Reference in New Issue
Block a user