def react_to_attack(life, target_id, stance):
	_target = LIFE[target_id]
	_attack = _target['moves'][stance]
	
	if _attack['effective_stance'] <= life['stance']:
		_force = life['stances'][life['stance']]-_attack['effective_stance']
	else:
		_force = 0
	
	if _force >= life['stances'][life['stance']]:
		lfe.push(life, numbers.direction_to(LIFE[target_id]['pos'], life['pos']), _attack['damage']['force'])
		force_stance(life, target_id, 'crawling')
	elif life['stances'][life['stance']]<=life['stances']['crouching']:
		force_stance(life, target_id, 'off-balance')
	
	lfe.add_wound(life, random.choice(life['body'].keys()), pain=_attack['damage']['force'])
dataset/ETHPy150Open flags/Reactor-3/melee.py/react_to_attack/swapped operands of `<=`