Commit d4092d75 authored by handsomekiwi's avatar handsomekiwi Committed by mercury233

add GetTotalAttackingMonsterAttack (#80)

parent 54d06a13
...@@ -41,6 +41,19 @@ namespace WindBot.Game.AI ...@@ -41,6 +41,19 @@ namespace WindBot.Game.AI
return 1; return 1;
} }
/// <summary>
/// Get the total ATK Monster of the player.
/// </summary>
public int GetTotalAttackingMonsterAttack(int player)
{
int atk = 0;
foreach (ClientCard m in Duel.Fields[player].GetMonsters())
{
if (m.IsAttack())
atk += m.Attack;
}
return atk;
}
/// <summary> /// <summary>
/// Get the best ATK or DEF power of the field. /// Get the best ATK or DEF power of the field.
/// </summary> /// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment