fixed line endingsin AIPlayer.cpp

modified debug output for Manacost.  ToString() wasn't defined correctly.  I refactored the output
for Dump() to just call ToString().
This commit is contained in:
techdragon.nguyen@gmail.com
2010-12-09 01:37:49 +00:00
parent 833bd4714d
commit 36c096a33c
2 changed files with 22 additions and 17 deletions

View File

@@ -441,10 +441,10 @@ int AIAction::getEfficiency()
AbilityFactory af;
int suggestion = af.abilityEfficiency(a, p, MODE_ABILITY);
int efficiencyModifier = (25 * target->DangerRanking());
if (p->game->hand->nb_cards > 1)
{
efficiencyModifier /= p->game->hand->nb_cards;
int efficiencyModifier = (25 * target->DangerRanking());
if (p->game->hand->nb_cards > 1)
{
efficiencyModifier /= p->game->hand->nb_cards;
}
if (suggestion == BAKA_EFFECT_BAD && p != target->controller() && target->has(a->abilitygranted) && p->isAI())
{