demonic gorilla combat script fix if possible
Demonic gorillas will change their attack style after 3 unsuccessful (0) hits. So if, for example, you are praying melee when it changes to mage and then it its you anything above a zero, it will continue with 3 more attacks (totalling 4). I think this is where you're finding it to be in need of a fix, when it's corrent.
Also, the attack for the boulder falling on your head doesn't count towards the 3/3 count