fixed a bug where "becomes(" was no longer giving more the a single ability to a card, example, inkmoth nexus would only gain flying, and not gain infect, this i imagine was due in part to a goof up...we split the string at the top by comma, in the refactor for this section it was changed to be either "" or becomesblah[2] <--this is incorrect, becuase what if a card would gain 2 abilities or more ...the we need to append the rest of the split portions back into the abilities string for adding.

also a piece that didn't get in my last commit, nothing big just 2 lines...not sure why on earth it didn't commit them before...
This commit is contained in:
omegablast2002@yahoo.com
2011-05-19 12:17:53 +00:00
parent 4a4066d145
commit 426cc68950
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -501,7 +501,7 @@ int AAFizzler::resolve()
{
ActionStack * stack = game->mLayers->stackLayer();
//the next section helps Ai correctly recieve its targets for this effect
if(!target)
if(!target && source->target)
{
//ai is casting a spell from it's hand to fizzle.
target = stack->getAt(stack->getActionElementFromCard(source->target));
@@ -515,7 +515,7 @@ int AAFizzler::resolve()
MTGCardInstance* sCard = (MTGCardInstance*)sTarget->source;
if(!sCard || !sTarget || sCard->has(Constants::NOFIZZLE))
return 0;
game->mLayers->stackLayer()->Fizzle(sTarget);
stack->Fizzle(sTarget);
return 1;
}