few small items, first since card view are now correctly null'ed, i ran into a few cases while watching demo mode where the game would trigger a stop on the battle hint that uses card views, apon checking the card view would be null at the time. so added a condiational check to prevent the game from trying to alter a null'ed pointer.

2nd, added a block out for optimizedhand in demo mode, ie any time its cpu player vs cpu player, noticed demo was starting matches with no cards.

3rd, added a hackish workaround to allow Ai to get eff returns on abilities using the all(this) lord workaround to target the source. Ai was not getting any returns on these abilities. now basically if the ability is a lord && !target...lets calculate this as tho source == target....
This commit is contained in:
omegablast2002@yahoo.com
2010-12-17 20:59:08 +00:00
parent f5aa68b330
commit d2a96e69df
4 changed files with 46 additions and 13 deletions

View File

@@ -808,8 +808,11 @@ int MTGCardInstance::toggleDefenser(MTGCardInstance * opponent)
didblocked = 1;
if (opponent && opponent->controller()->isAI())
{
opponent->view->actZ += .8f;
opponent->view->actT -= .2f;
if(opponent->view != NULL)
{
opponent->view->actZ += .8f;
opponent->view->actT -= .2f;
}
}
if (!opponent)
didblocked = 0;