Programming for Combat

Hi all,
The Combat code has changed a lot since the last time I dug around in there. (Probably when I first did Lure...) Anyways:
First question:
How does the compy decide if he's going to attack Human's Planeswalker? Is it really random as ComputerUtil_Attack2.chooseDefender() suggests?
Second:
If I set Combat.setCurrentDefender(int index), if that all the Combat code looks at for where to add attackers in Combat? I ask because I'm setting it to a planeswalker in chooseDefender, but the computer attacks Human and not the planeswalker.
That's a start. Thanks in advance.
-slapshot5
The Combat code has changed a lot since the last time I dug around in there. (Probably when I first did Lure...) Anyways:
First question:
How does the compy decide if he's going to attack Human's Planeswalker? Is it really random as ComputerUtil_Attack2.chooseDefender() suggests?
Second:
If I set Combat.setCurrentDefender(int index), if that all the Combat code looks at for where to add attackers in Combat? I ask because I'm setting it to a planeswalker in chooseDefender, but the computer attacks Human and not the planeswalker.
That's a start. Thanks in advance.
-slapshot5