I've done the same thing with one caveat- you basically use a spell attack roll equal to 11+ spell level OR 10+ the ST bonus of the monster (if spell requires ST) or AC if it's an actual attack. If the spell succeeds, it goes through the ST, and goes off (which means no rolling for 12 goblin's...