Contingency

This spell allows caster to choose 1 spell to be released later under specific conditions. Maximum spell level determined by caster level: 1 spell level/3 caster levels, with maximum 6th level spell at 18 caster level.

Acceptable conditions are:
 * Caster is hit for 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

Only caster can be target of spell.