No. Spells are not terrain. Terrain is the physical landscape, spells are not, but could possibly effect the terrain if it is so stated in the spell. If spells were considered terrain, then your deduction would work. Even if the spell quacks, that's no proof that it's a duck, no matter what...