New event enemy:on_attacking_hero() to customize attacks. Fix #356.