Attribute: Immunities
Section 3.B
:immunities This attribute is an array of symbols, where each symbol grants the wild Pokemon special immunities for this battle only. Once the Pokemon is captured however, it will no longer have any of these immunities. Here's an example of what this may look like when set:
setBattleRule("editWildPokemon", {
:name => "Big Kahuna",
:form => 1,
:item => :THICKCLUB,
:hp_level => 10,
:immunities => [:SLEEP, :FROZEN, :OHKO, :ITEMREMOVAL]
})
setBattleRule("cannotRun")
setBattleRule("disablePokeBalls")
WildBattle.start(:MAROWAK, 50)
In the example above, a wild battle vs a level 50 Alolan Marowak named "Big Kahuna" will be initiated. It'll be holding the Thick Club, and it's HP will be scaled up by 10x as well as being completely immune to Sleep, Freeze, OHKO moves/effects, and any effect that would remove/replace/disable its held item.
Here's the total list of potential immunities you can give to a wild Pokemon, and the symbols you would use for each one:
Last updated
Was this helpful?