Help with Attack of Opportunity simulation

Hi, i’m making a script for a power that allows the caster to do attacks of AoO with a weapon-like ability(i.e: Eldritch Glaive, Ice Axe,etc), i have managed to simulate most of its conditions except for checking if the enemy is using Disarm or Drinking potions.

Any ideas on how to check for those 2 conditions(Drinking potions, Using Disarm)?

GetCurrentAction for using any items returns 19 which is the id of spellcast_item or something like that.