======Status Priority (Game Mechanic)====== Most spells and items that inflict status effects can fail if the target already has certain other status effects active. This check uses a priority system, where higher priority status effects cause lower priority ones to fail. =====Status Bytes===== Magical and physical attacks have different approaches to status priority, but both are based on the following two bytes, with their status effects listed in decreasing order of priority. ^ Status Byte 1 ^ Status Byte 2 ^ | Swoon | Curse | | Stone | Paralyze | | Toad | Sleep | | Small | Charm | | Pig | Berserk | | Mute | Gradual Petrification | | Darkness | | | Poison | | =====Magic===== Magical attacks include all spells, monster abilities, j-items and weapons used as items. Magical attacks that inflict statuses combine these two bytes into a list, treating the **first** byte as higher priority((Swoon > Stone > ... > Darkness > Poison > Curse > Paralyze > ...)). If the target has any existing status effect with higher priority than the highest priority status of the spell/ability being used, no new status effects will be inflicted. As an example, Breath inflicts Toad, Mini, Piggy, Silence, Darkness and Charm. The highest priority among these is Toad, so the only status effects that could prevent it are Stone and Swoon. Thus, Breath essentially cannot be prevented with status priority (however, it can be prevented through status immunities((Immunity to any of the spell's status effects will cause all status effects to fail.)) [TODO: relevant article!]). =====Physical===== Physical attacks include characters attacking with a weapon (rather than using it as an item), as well as monster "punches". Physical attacks that inflict statuses combine these two bytes into a list, treating the **second** byte as higher priority.((Curse > Paralyze > ... > Gradual Petrification > Swoon > Stone > ... > Darkness > Poison)) If the target has any existing status effect with higher priority than the one being inflicted, the effect fails. Physical attacks must also meet certain other requirements to take effect. See: [[Status Procs]]. =====Exceptions===== Poison ignores status priority when being inflicted by magical spells or abilities. In these cases, it can only be prevented with immunity.((And in general, effects that do damage while inflicting Poison also ignore immunity.)) Gradual Petrification ignores status priority when being inflicted via the monster ability Petrify. It can only be prevented with immunity. Some multi-target monster abilities may not work as expected, especially ''-whichburn'' abilities that are not multi-target in the vanilla game.((For example, in a multi-target Slap (which chooses one of Mute, Curse, Paralyze for each target), if one target rolls Mute, the Mute effect gets added to the rest of the rolls too. This also raises their priority to Mute's priority) )) [TODO: Other exceptions?]