lhearachel / plat-engine

MIT License
3 stars 2 forks source link

Iron Barbs #70

Closed lhearachel closed 1 year ago

lhearachel commented 1 year ago

Documentation

https://bulbapedia.bulbagarden.net/wiki/Iron_Barbs_(Ability)

When a Pokémon with this Ability is hit by a move that makes contact, the attacking Pokémon takes damage equal to 1/8 of its own maximum HP. If Iron Barbs causes both the Pokémon with this Ability and the attacking Pokémon to faint, then the attacking Pokémon will faint first.

Relevant Code Points

This is functionally equivalent to Rough Skin. Refer to its implementation in Function 0x0225708C.