My party recently encountered a Flail Snail, and a question came up regarding its Warp Magic ability:
Warp Magic (Su): Anytime a spell targets a flail snail, there is an 80% chance that it produces a random effect instead of affecting the snail. Only spells that directly target the flail snail are warped; area effect spells are not affected. If a spell is warped, roll 1d10 and consult the following table.
- 1–3 Spell misfires. For the next 1d4 rounds, the caster must make a DC 15 concentration check to successfully cast spells.
- 4–6 Spell misfires. The creature nearest the flail snail is affected as if the spell had been cast on it instead.
- 7–9 Spell fails. Nothing happens.
- 10 Spell rebounds on caster (as spell turning).
The witch cast a slumber hex on the snail, which is a supernatural ability. Does the snail's warp magic ability apply in this case? I'm not sure this bestiary entry took hexes into account, but it seems that the intent is for all magic to have a chance of backfiring. Certainly all of the possible outcomes in the table could be applied.
Are there any rules anywhere for how hexes should be treated in these scenarios? Another example off the top of my head would be many constructs' magic immunity.