Special Interactions

###### Mortal

* Not a special interaction, but this curse is ***notorious*** for making too many bug reports!
* Either it's because hero does not heal as expected, or an item does not give the correct max hp or boost
* Corroded bomb can become usable when the pip count is limited by Mortal

###### Item ordering

* Items apply in order - applying the effect of item 1 first, then item 2, then item 3 (and more if you equip more in Paste)
* Most items apply once, and does not apply passively (i.e. Faerie Dust does not apply to newly created blanks in-fight)
	+ Specifically, there is a fixed order in which effects are applied (see almanac under "advanced"), and items apply before in-combat effects do. Thus a side getting blanked during a fight will override what any items are doing to that side.

###### Blanks

* Normal Blank, Petrified Blank and Single-use Blank all count as blanks for the blank replacer effects (Spell Hack, Gather, Faerie Dust)
* Blank replacer spells turn all current and incoming blanks this turn only. (i.e. A 1 damage Double-use/Single-use side will turn into 2 mana immediately after first use if Gather spell has been casted beforehand on the same turn)

###### Enemy summoning rule:

* Even-numbered summons (Tarantus summon 4 spiders) always split the number of summons above and below the summoner equally (i.e. 2 spiders summoned above Tarantus and 2 below)
* Single summons (Grave summoning 1 Bones, Slimer splitting into Slimelets on damage taken) will try to push the summoner to the center (by counting the enemies, irrespective of enemy size). If the summoner is already at the center, it will summon downward.
* For example:
	+ If the enemy board from top to bottom is Grave, Bones -> Grave will summon above
	+ If the enemy board is Bones, Grave -> Grave will summon below
	+ If the enemy board is Bones, Grave, Bones -> Grave will summon below
* All odd-numbered summons (i.e. Summon 3) will have all summons except for the last one (first two) follow the rule for even-numbered summons, while the last summon follow the rule for single summons.
* If a 7 hp Slimer is damaged by 6, both Slimelet summons are considered as two single summons rather than one double summon.

###### Illegal keyword-baseside pairings

* Cantrip - Revive is banned
* Blanks do not work with most keywords, with Sticky being the known exception.

###### Keyword ordering

* Keyword order matters in determining how each keyword influences the side
* All non-directional keywords apply first before directional keywords.
* For example:
	+ 1 damage baseside + Active Pristine, Rainbow -> 1\*2+2 = 4 damage
	+ 1 damage baseside + Rainbow, Active Pristine -> (1+2)\*2 = 6 damage
	+ 1 damage baseside + Active Pristine, Engage, Rainbow -> ((1\*2 from Pristine) + 2 from Rainbow)\*2 from Engage = 8 damage
	+ 1 damage baseside + Pair, Rainbow -> 1\*2 (if pair is active)+2 = 4 damage IF previously used dice with 1 pip
	+ 1 damage baseside + Rainbow, Pair -> (1+2)\*2 (if pair is active) = 6 damage IF previously used dice with 1+2 = 3 pip

###### Multi-use sides

* Every turn, a hero normally has a maximum of 1 use of dice. When the dice is used, the "use counter" goes up by 1. If the use counter is equal or higher than the maximum number of use, the dice will then be disabled.
* Double-use and Quad-use sides have a maximum use of 2 and 4 respectively. Temporarily getting these keywords (i.e. Copycat) will temporarily increase this maximum number of use.
* Effects that refresh sides resets "use counter" back to zero. This includes Leader/Poet's repeat side, Rampage/Rescue keywords.

###### Permadeath

* Permadeath is a debuff applied by Glass Helm item, or by the Permadeath curse.
* Permadeathed hero cannot be revived by a revive side
* Permadeathed hero does not revive on the following fights, including on Cursed run loops
* Bone Charm does NOT prevent permadeath
* Items equipped on a Permadeathed hero is not lost - it will be returned to the inventory
* Permadeathing a hero is the common way to get a higher tier hero in a normal run (see the next section on high tier heroes), because the number of upgrades available now exceed the number of heroes available.

###### High-tier heroes

* When all heroes are already tier 3 and you still have hero upgrade events, the game will offer tier 4 generated heroes. Likewise for all tiers, up to tier 9.
* When all your heroes is tier 9 and you are offered an upgrade event, you will be offered Glitch hero instead. Currently, this hero is coded as tier 4.

###### Emeralds and Tw1ns

* Emerald items will attempt to copy items equipped on other heroes in the order from top hero's items to the bottom hero's items
* All copies of Tw1n will always copy the items of Twin
* Copied Clay will try to duplicate the items of the new hero. As Tw1n cannot be equipped with any items in the inventory, Clay will have no effect on Tw1n
* Copied Emerald item (i.e. copied Emerald Shard due to Polished Emerald or Tw1n) will have its effect trigger last

###### Random interactions

1. If a hero has both "Cannot be rerolled" and "Must be rerolled" effects applied together, you are forced to end your reroll selection (equivalent to playing without any rerolls)
2. Bind does not prevent Death keyword, Tarantus death pip, or prevent enemy debuffs from being applied
3. Bind removing max hp at full health will cause overhealing to occur (thus triggering Ichor Chalice or Blood Chalice)
4. Bones's death effect can trigger Demon's On-hit passive, and overkilling the bone by another 6. Useful only with Bandits
5. Urn works when the side is replaced temporarily by another hero's Duplicate side
6. Reviving a hero counts as rescuing for the purposes of Halo items (i.e. Faint Halo) or Rescue keyword
7. Era works by adding (n-1) pips, where n is the number of turns. This is especially notable when the era hero died and has been revived, or if the keyword is inherited from Copycat keyword
8. Vigil works by adding (m) pips, where m is the number of currently dead heroes. Reviving one hero reduces the vigil buff by 1
	* NEED TO TEST FOR PERMADEATH
9. When a damage effect and mitigation effect apply at the same time, shields will be resolved first, then pain/damage effect, then healing effect last. Only after the healing effect triggers, will the check for death trigger.
	* For example:
	* Fate with 1 empty hp, using 2 shield-mana-heal side with Pain on herself -> shields apply first, then Pain negaes the shielding, then healing recovers 1 hp. The end result is Fate is full-healed, but has no shields applied on her
	* Vampire with 5 hp hitting Demon's On-hit with 2 damage self-heal -> damage applied first putting Vampire to -1 hp, then She is healed to 1 hp, and only then the check if Vampire is still alive triggers. Vampire is alive at 1 hp.
10. Keywords copied from Copycat will be placed at the end of the sides' keywords, in the order of the copied dice's keywords. Copycat will not copy keywords already in the original dice (test to be sure?)
	* For example a 1 damage Copycat Bloodlust attempts to copy a 2 shield Mana-gain Pristine Bloodlust -> the side becomes 1 damage Copycat Bloodlust Mana-gain Pristine
11. Plague does not properly work with Copycat in this current patch
12. Copycat does not work properly with echo on the current patch
13. Caltrops side counts as a damage side for the purposes of keywords that work on it. This includes Poison, Self-shield/Self-heal, Terminal, etc
14. Currently all sides have a minimum of 0 pips. This effect is applied after EVERY item (i.e. Gambler's Ace), and after in-combat debuffs like Weaken is applied.
	* This is expected to be changed in a future patch
15. Stasis prevents keywords that apply pip changes from taking effect.I.e. applying Pristine to a side with Tie then equipping Stasis will remove the doubling effect from Pristine
16. Alliteration keyword (from Poem) or Dog keyword (from Poodle) applies when the hero applies heal or shield to itself