Merge branch 'master' of https://github.com/kevlahnota/wagic
This commit is contained in:
@@ -1681,10 +1681,16 @@ int AIPlayerBaka::selectMenuOption()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(currentMenu)
|
if(currentMenu)
|
||||||
for(unsigned int mk = 0;mk < currentMenu->abilities.size();mk++)
|
for (unsigned int mk = 0; mk < currentMenu->abilities.size(); mk++)
|
||||||
{
|
{
|
||||||
|
if (dynamic_cast<AAWhatsX*>(currentMenu->abilities[0]))
|
||||||
|
{
|
||||||
|
int potent = manaPool->getConvertedCost();
|
||||||
|
int aftercost = potent - currentMenu->abilities[0]->source->getManaCost()->getConvertedCost();
|
||||||
|
return aftercost;
|
||||||
|
}
|
||||||
int checked = getEfficiency(currentMenu->abilities[mk]);
|
int checked = getEfficiency(currentMenu->abilities[mk]);
|
||||||
if(checked > 60 && checked > checkedLast)
|
if (checked > 60 && checked > checkedLast)
|
||||||
{
|
{
|
||||||
doThis = mk;
|
doThis = mk;
|
||||||
checkedLast = checked;
|
checkedLast = checked;
|
||||||
|
|||||||
@@ -52,7 +52,10 @@ int Damage::resolve()
|
|||||||
damage = ev->damage->damage;
|
damage = ev->damage->damage;
|
||||||
target = ev->damage->target;
|
target = ev->damage->target;
|
||||||
if (!damage)
|
if (!damage)
|
||||||
|
{
|
||||||
|
delete (e);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//asorbing effects for cards controller-----------
|
//asorbing effects for cards controller-----------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user