fixed soulbond and testsuite issue, fixed crash from combohint not being int'ed to some AIStats(which are considered "human"

This commit is contained in:
omegablast2002@yahoo.com
2012-08-26 08:08:36 +00:00
parent 7583e61510
commit 3b447135fb
2 changed files with 3 additions and 8 deletions

View File

@@ -2397,6 +2397,7 @@ AIPlayerBaka::AIPlayerBaka(GameObserver *observer, string file, string fileSmall
//Initialize "AIHints" system
hints = NULL;
comboHint = NULL;
if (mDeck && mDeck->meta_AIHints.size())
{
hints = NEW AIHints(this);

View File

@@ -2000,7 +2000,7 @@ int MTGSoulbondRule::receiveEvent(WEvent * event)
MTGCardInstance * card = e->card;
if (!card || !card->isCreature()) return 0;
int ok = 0;
if(card->basicAbilities[(int)Constants::soulbond] || soulbonders.size())
if(card->has(Constants::soulbond) || soulbonders.size())
{
for (int i = 0; i < 2; i++)
{
@@ -2082,13 +2082,7 @@ MTGSoulbondRule * MTGSoulbondRule::clone() const
{
return NEW MTGSoulbondRule(*this);
}
MTGSoulbondRule::~MTGSoulbondRule()
{
for(size_t k = pairing.size()-1;k > 0; k--)
{
//SAFE_DELETE(pairing[k]);
}
}
/* Persist */
MTGPersistRule::MTGPersistRule(GameObserver* observer, int _id) :
PermanentAbility(observer, _id)