Thank you for making this script for my request.
Now ,I have just recently tried it to see if it works well.
But Unfortunatly it isn't work absolutely
There are no wrongs but it seems useless where
I tried it in battle test with Ghost troops ,but the enemy didn't use items..
so, I tried to delete all Ghosts' action from database ,may that do something ,but it's useless.
So, I wish if you can try it and check it out to find the cause for its useless
and fix it if it can be done
Anyway ,I appreciate your effort to make it and hopefully it will well......