Chain Contingency

Chain Contingency allows 3 spells from 8th or lower level to be released in specific conditions. These conditions are:
 * Caster was hit and suffered damage
 * Caster sees enemy
 * Caster lost half of his hit points
 * Caster lost 75% of his hit points
 * Caster lost 90% of his hit points
 * Caster is helpless
 * Caster has been poisoned

Target of released spell can be:
 * Caster
 * Last creature that hit caster
 * Nearest enemy