Can the wish spell overcome a rakshasa's limited magic immunity when used to duplicate the effect of a lower-level spell?
I always wondered how the two interacted. What if I cast wish, duplicating the spell contagion (normally a 5th-level spell), at a rakshasa? The creature is immune to spells of 6th level or under, but does my spell count as a 9th-level spell because I used wish, or a 5th-level spell because the effect is that of contagion? Perhaps it counts as 9th for counterspell purposes, but 5th-level for immunity purposes?
If anyone has an answer, I would love to hear it.