Added defend action and finalized logic for status effects.