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:
:SLEEP
Makes the wild Pokemon completely immune to the Sleep status, including from indirect means such as Yawn or Synchronize. This is similar to having the Insomnia ability. This will not prevent self-inflicted Sleep through Rest, however.
:POISON
Makes the wild Pokemon completely immune to the Poison status, including from indirect means such as Synchronize. This is similar to having the Immunity ability.
:BURN
Makes the wild Pokemon completely immune to the Burn status, including from indirect means such as Synchronize. This is similar to having the Water Veil ability.
:PARALYSIS
Makes the wild Pokemon completely immune to the Paralyzed status, including from indirect means such as Synchronize. This is similar to having the Limber ability.
:FROZEN
Makes the wild Pokemon completely immune to the Frozen status, including from indirect means such as Synchronize. This is similar to having the Magma Armor ability.
:FROSTBITE
Makes the wild Pokemon completely immune to the Frostbite status, including from indirect means such as Synchronize. This is only relevant if you have the Gen 9 Pack installed.
:DROWSY
Makes the wild Pokemon completely immune to the Drowsy status, including from indirect means such as Synchronize. This is only relevant if you have the Gen 9 Pack installed.
:CONFUSION
Makes the wild Pokemon completely immune to being confused. This is similar to having the Own Tempo ability.
:ATTRACT
Makes the wild Pokemon completely immune to being infatuated. This is similar to being genderless.
:ALLSTATUS
This combines the effects of all of the immunities listed above, making the wild Pokemon completely immune to the Sleep, Poison, Burn, Paralysis, Frozen, Frostbite, and Drowsy status conditions. This also makes the wild Pokemon immune to being confused or infatuated.
:FLINCH
Makes the wild Pokemon completely immune to being flinched. This is similar to having the Inner Focus ability.
:CRITICALHIT
Makes the wild Pokemon completely immune to being critically hit. This is similar to having the Battle Armor ability.
:STATDROPS
Makes the wild Pokemon completely immune to having its stats lowered. This does not prevent self-inflicted stat drops, however. This is similar to having the Clear Body ability.
:PPLOSS
Makes it so the wild Pokemon's PP cannot be lowered, even from using its own moves. This effectively gives the wild Pokemon infinite PP. Moves that would directly reduce the target's PP, such as Spite, will simply fail when used on the target.
:TYPECHANGE
Makes the wild Pokemon completely immune to effects that would change its typing in any way. This includes effects that add to the target's typing, such as Forest's Curse. Effects that would cause the user to change its own typing, such as from the effects of moves like Reflect Type and Conversion2, will also fail to work.
:ITEMREMOVAL
Makes the wild Pokemon completely immune to effects that would remove, replace, swap or disable its held item. This is similar to having the Sticky Hold ability. Effects that would cause the user to remove its own held item, such as through the effects of Fling or Bestow, will also fail to work.
:ABILITYREMOVAL
Makes the wild Pokemon completely immune to effects that would remove, replace, swap, or disable its ability. This is similar to having an ability that cannot be negated, like Multitype. Effects that would cause the user to replace or swap its own ability, such as through the effects of Role Play or Skill Swap, will also fail to work.
:INDIRECT
Makes the wild Pokemon completely immune to taking damage from indirect sources. This is similar to having the Magic Guard ability. This means any passive damage taken from things like status conditions, weather, Leech Seed, recoil, entry hazards, etc. will have no effect on this Pokemon.
:DISABLE
Makes the wild Pokemon completely immune to effects that would temporarily disable one or more of the moves in its moveset. This is similar to having the Aroma Veil ability. This means that any of the following effects will fail to work on the Pokemon: Disable/Cursed Body, Torment, Encore, Taunt, Heal Block, and Throat Chop.
:OHKO
Makes the wild Pokemon completely immune to effects that would instantly set its HP to zero. This includes all OHKO moves such as Fissure and Horn Drill, but this also includes passive OHKO effects from moves such as Destiny Bond and Perish Song.
:SELFKO
Makes the wild Pokemon incapable of forcing itself to faint with self-KO moves. This causes the following moves to fail when used by this Pokemon: Self-Destruct, Explosion, Misty Explosion, Final Gambit, and Memento. In addition, moves that instantly cut the user's HP by 50% of its total HP, such as Mind Blown, Steel Beam, and Ghost-type Curse will fail to work if the user would KO itself by using the move. However, traditional recoil or crash damage moves such as Double-Edge or High Jump Kick are not affected by this.
:ESCAPE
Makes the wild Pokemon completely immune to effects that would force it to flee to end the battle. This is similar to having the Suction Cups ability. This means any of the following effects will fail to work on the Pokemon: Roar, Whirlwind, Circle Throw, and Dragon Tail. Effects that would cause the user to force itself to flee from battle, such as through the effects of Teleport, Emergency Exit, or Wimp Out, will also fail to work.
:TRANSFORM
Makes the wild Pokemon completely immune to being copied by the effects of Transform or Imposter. This also prevents the Pokemon from changing itself with these effects. This can be used to prevent the player from copying overpowered boss-exclusive moves and/or abilities, while simultaneously preventing the wild boss Pokemon from being cheesed by manipulating it into transforming into something less threatening.
Last updated