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:
@@ -2397,6 +2397,7 @@ AIPlayerBaka::AIPlayerBaka(GameObserver *observer, string file, string fileSmall
|
|||||||
|
|
||||||
//Initialize "AIHints" system
|
//Initialize "AIHints" system
|
||||||
hints = NULL;
|
hints = NULL;
|
||||||
|
comboHint = NULL;
|
||||||
if (mDeck && mDeck->meta_AIHints.size())
|
if (mDeck && mDeck->meta_AIHints.size())
|
||||||
{
|
{
|
||||||
hints = NEW AIHints(this);
|
hints = NEW AIHints(this);
|
||||||
|
|||||||
@@ -2000,7 +2000,7 @@ int MTGSoulbondRule::receiveEvent(WEvent * event)
|
|||||||
MTGCardInstance * card = e->card;
|
MTGCardInstance * card = e->card;
|
||||||
if (!card || !card->isCreature()) return 0;
|
if (!card || !card->isCreature()) return 0;
|
||||||
int ok = 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++)
|
for (int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
@@ -2082,13 +2082,7 @@ MTGSoulbondRule * MTGSoulbondRule::clone() const
|
|||||||
{
|
{
|
||||||
return NEW MTGSoulbondRule(*this);
|
return NEW MTGSoulbondRule(*this);
|
||||||
}
|
}
|
||||||
MTGSoulbondRule::~MTGSoulbondRule()
|
|
||||||
{
|
|
||||||
for(size_t k = pairing.size()-1;k > 0; k--)
|
|
||||||
{
|
|
||||||
//SAFE_DELETE(pairing[k]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* Persist */
|
/* Persist */
|
||||||
MTGPersistRule::MTGPersistRule(GameObserver* observer, int _id) :
|
MTGPersistRule::MTGPersistRule(GameObserver* observer, int _id) :
|
||||||
PermanentAbility(observer, _id)
|
PermanentAbility(observer, _id)
|
||||||
|
|||||||
Reference in New Issue
Block a user