Integrated environment/effects system.
Added before_attack and on_death events.