10-13-2013, 11:21 PM
I think there needs to be a conditional in the casting on ally logic. The ActionList:CanCast function isn't preventing the bot from casting a heal spell on the enemy if it can't find an ally. I just added an additional conditional in the Cast function for now and it works.
Code:
elseif ( skill.trg == "Ally" ) then
if ( ally ~= nil and ally.id ~= PID) then
target = ally
TID = ally.id
tbuffs = ally.buffs
else
castable = false
end
end