I'm getting an error when my enemies have the Action's attribute enabled. it says:
In Blizz ABS v1.99 Part 2: line 3151(may not be the same line as the original, because I've done a ton of edits, although not with the AI)
undefined method 'hp' for nil:NilClass
For reference, here are lines around 3151:
# find all allies in memory
ai.mem.each {|a| allies.push(a[0]) if positive.include?(a[0].AI_data.basic)}
# find all enemies in memory
ai.mem.each {|a| enemies.push(a[0]) if negative.include?(a[0].AI_data.basic)}
# find all allies who need healing
to_heal = allies.find_all {|b| b.battler.hp < b.battler.maxhp}
# if decided to heal
if (heal.size > 0 && to_heal.size > 0 && (ai.healer || rand(3) == 0) &&
rand(5) == 0)
line 3151 is: to_heal = allies.find_all {|b| b.battler.hp < b.battler.maxhp}
I get this error when I am fighting a group of 2 or more enemies, and one of them dies. this happens about 70% of the time.
So basically, the update of you AI is trying to see if it can heal any allies, then crashes when it finds a dead ally.
Also, I tried redownloading to see if I had the latest fix, but the file is corrupted again :/