I'm messing with Troll behaviour (Changing their upkeep, attack chance and how easy they are to stun) and found a strange construction on their stun code (The sources I got are the last posted on MBX forum... 3.23 version):
# test for stun
(assign,":status",-4), # STUNNED: skip 4 "turns"
"Store_add" requires 3 parameters... Which is the 1st anomaly... The second is that adding any value to "last_hp" would "permastun" trolls unless they recover HP in-battle. Trolls swing ATM and more or less behave properly, meaning this strange construction seems harmless... But that "store_add" command can be adding something to somewhere uncontrollably, that's why I'm reporting this... Just in case.
EDIT: Sorry, forgot to add the file were this lines are: "module_missions_template_TLD.py"