in config, can you add
"maxattacktime", "minattacktime" and maybe "giveupattack"
maxattacktime=max amount of time spent trying to attack
minattacktime=minimum amount of time spent trying to attack
giveupattack=if it will stop attacking or not (booleen)