Relic Castle

I am making a new game where there are crystals instead of pokeballs and they have certain elements to them, but I have been working on the script for three days and I haven't been able to make a "masterball effect" to certain types and fail on others. Example I want a pokeball or crystal that 100% catches poison types but 100% fails in others. Do you guys have a script I can use?
Top