OilyLime / HackymonTCG

Project for SOEN 354 @ Concordia
0 stars 0 forks source link

AI only plays pokemon from hand #74

Closed vdwmontreal closed 6 years ago

vdwmontreal commented 6 years ago

In battle, the AI can have a full bench of pokemon but not play any to the field. This appears to be due to the AI only playing the pokemon in its hand. If it has no pokemon in its hand, it doesn't play those from the bench. Likely, there is a function missing somewhere to allow this to happen.

LucCelny commented 6 years ago

when the active pokemon dies the player must choose a replacement from their bench, if there are no pokemon on the player's bench, that player looses