AIPlayer trigger fix as in #1007.
Merge pull request #1017 from eightyeight/aiplayer-triggers-fix

AIPlayer trigger fix