SetTargets¶
This method updates availabletargets and helpboxid according to the playerdata[currentturn].battleentity.animid`.
- If
currentturnis negative (no player is currently selected),helpboxidis set to -1 - Otherwise,
helpboxidis set toplayerdata[currentturn].battleentity.animidand GetAvaliableTargets is called according to that animid:- 0 (
Bee): without onlyground and onlyfront with attackid of -1 - 1 (
Beetle): with onlyground and onlyfront with attackid of -2 - 2 (
Moth): with onlyground and without onlyfront with attackid of -3
- 0 (