Yesterday I noticed an issue with my mobs after I started to script my trash mobs for a new instance.
I'm not sure what caused this, but my mobs decided to ignore the CastOnTarget function and only cast on themselves. The AoEs will still do damage, but any single target spell hits the mob instead of the intended player.
I didn't make any kind of changes from my normal scripts, I went back and checked an instance I had already made and had working scripts for, and now these mobs were doing the same thing.
Example:
function Corruptor_Corruption (Unit, Event)
local plr = Unit:GetRandomPlayer(0)
if (plr ~= nil) then
Unit:CastSpellOnTarget(27243, plr)
end
end
It's supposed to cast a corruption spell on any random player, but now instead it will cast the spell on itself.
There's no loading issue with the script when I start the emulator, and no kind of error message on the console when they cast these spells.
I tried updating my LUA++ to the newer revision, but it doesn't compile correctly, some kind of Uint issue when I compile all the script_bin files.
I'm still using the original Ascent, not sure if LUA++ has some kind of issue now with it in their newer revisions.
Any help would be greatly appreciated.