How to calculate the chance of Effect Spore being invoked against specific types that are immune to some conditions?

In Pokémon 7th gen, the chance of Effect Spore activating is 30%. However, some types like Steel or Electric are immune to some conditions such as Poison or Paralysis.
In this case, if say, Kartana attacks Shiinotic, is the chance of Effect Spore activating 20% (only Paralysis or Sleep), or 30% (Paralysis and Sleep each has a 15% of activating)? How is it calculated?
Best Answer
First off, your percentages are a bit off. According to Bulbapedia, Effect Spore has a 9% chance of inducing poison, 10% chance of inducing paralysis, and 11% chance of inducing sleep.
It doesn't specify what happens when the opponent effected by it is a steel type but I think it's safe to assume that it first determines which effect to trigger and then check if the spore will have effect on the opponent
Pictures about "How to calculate the chance of Effect Spore being invoked against specific types that are immune to some conditions?"



Which Pokemon has Effect spore?
Pok\xe9mon with Effect SporePok\xe9monTypesFirst AbilityVileplumeGrassChlorophyllParasBugEffect SporeParasectBugEffect SporeShroomishGrassGrass8 more rowsHow does effect spore work?
Effect Spore is an ability that makes the foe poisoned, paralyzed, or fall asleep 30% of the time whenever attacked by a move that makes contact. The chance of inflicting a given status is not the same for each status.Does Effect Spore work on grass types?
Generation VI onwards Grass-type Pok\xe9mon, Pok\xe9mon with Overcoat, and Pok\xe9mon holding the Safety Goggles are now immune to Spore.Chapter 7 — 7.3 to 7.5 — Momentum in Recoil and Collisions
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Gabe Garza, Harrison Haines, Anna Tarazevich, Anna Tarazevich