Did you use scan before casting your spells? Barrier shift changes the targets resistances. Healing the boss is not a very good idea.

At least there is a save point in the room before the battle.