The second hovering statue was already beginning to cast its poison spells on the skeletons, though they were still completely ineffective.
Would their spells work on the undead? Of course not.
Like the other stone soldiers in this dungeon, it was clear that they had lost their intelligence with the passage of time.